Static Public Member Functions

static int URShift (int number, int bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static System.Int32 ReadInput (System.IO.TextReader sourceTextReader, byte[] target, int start, int count)
 Reads a number of characters from the current source TextReader and writes the data to the target array at the specified index. More...
 

Static Package Functions

static byte[] ToByteArray (System.String sourceString)
 
static char[] ToCharArray (byte[] byteArray)
 

Member Function Documentation

static System.Int32 Zlib.SharedUtils.ReadInput ( System.IO.TextReader  sourceTextReader,
byte[]  target,
int  start,
int  count 
)
inlinestatic

Reads a number of characters from the current source TextReader and writes the data to the target array at the specified index.

Parameters
sourceTextReaderThe source TextReader to read from
targetContains the array of characteres read from the source TextReader.
startThe starting index of the target array.
countThe maximum number of characters to read from the source TextReader.
Returns
The number of characters read. The number will be less than or equal to count depending on the data available in the source TextReader. Returns -1 if the end of the stream is reached.
static byte [] Zlib.SharedUtils.ToByteArray ( System.String  sourceString)
inlinestaticpackage
static char [] Zlib.SharedUtils.ToCharArray ( byte[]  byteArray)
inlinestaticpackage
static int Zlib.SharedUtils.URShift ( int  number,
int  bits 
)
inlinestatic

Performs an unsigned bitwise right shift with the specified number

Parameters
numberNumber to operate on
bitsAmmount of bits to shift
Returns
The resulting number from the shift operation