AMPS C# Client  5.3.3.4
AMPS C# Client for .NET
ComponentAce.Compression.Libs.zlib.SupportClass Class Reference

Static Public Member Functions

static long Identity (long literal)
 This method returns the literal value received More...
 
static ulong Identity (ulong literal)
 This method returns the literal value received More...
 
static float Identity (float literal)
 This method returns the literal value received More...
 
static double Identity (double literal)
 This method returns the literal value received More...
 
static int URShift (int number, int bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static int URShift (int number, long bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static long URShift (long number, int bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static long URShift (long number, long bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static System.Int32 ReadInput (System.IO.Stream sourceStream, byte[] target, int start, int count)
 Reads a number of characters from the current source Stream and writes the data to the target array at the specified index. 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 byte[] ToByteArray (System.String sourceString)
 Converts a string to an array of bytes More...
 
static char[] ToCharArray (byte[] byteArray)
 Converts an array of bytes to an array of chars More...
 

Member Function Documentation

◆ Identity() [1/4]

static double ComponentAce.Compression.Libs.zlib.SupportClass.Identity ( double  literal)
inlinestatic

This method returns the literal value received

Parameters
literalThe literal to return
Returns
The received value

◆ Identity() [2/4]

static float ComponentAce.Compression.Libs.zlib.SupportClass.Identity ( float  literal)
inlinestatic

This method returns the literal value received

Parameters
literalThe literal to return
Returns
The received value

◆ Identity() [3/4]

static long ComponentAce.Compression.Libs.zlib.SupportClass.Identity ( long  literal)
inlinestatic

This method returns the literal value received

Parameters
literalThe literal to return
Returns
The received value

◆ Identity() [4/4]

static ulong ComponentAce.Compression.Libs.zlib.SupportClass.Identity ( ulong  literal)
inlinestatic

This method returns the literal value received

Parameters
literalThe literal to return
Returns
The received value

◆ ReadInput() [1/2]

static System.Int32 ComponentAce.Compression.Libs.zlib.SupportClass.ReadInput ( System.IO.Stream  sourceStream,
byte[]  target,
int  start,
int  count 
)
inlinestatic

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

Parameters
sourceStreamThe source Stream to read from.
targetContains the array of characteres read from the source Stream.
startThe starting index of the target array.
countThe maximum number of characters to read from the source Stream.
Returns
The number of characters read. The number will be less than or equal to count depending on the data available in the source Stream. Returns -1 if the end of the stream is reached.

◆ ReadInput() [2/2]

static System.Int32 ComponentAce.Compression.Libs.zlib.SupportClass.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.

◆ ToByteArray()

static byte [] ComponentAce.Compression.Libs.zlib.SupportClass.ToByteArray ( System.String  sourceString)
inlinestatic

Converts a string to an array of bytes

Parameters
sourceStringThe string to be converted
Returns
The new array of bytes

◆ ToCharArray()

static char [] ComponentAce.Compression.Libs.zlib.SupportClass.ToCharArray ( byte[]  byteArray)
inlinestatic

Converts an array of bytes to an array of chars

Parameters
byteArrayThe array of bytes to convert
Returns
The new array of chars

◆ URShift() [1/4]

static int ComponentAce.Compression.Libs.zlib.SupportClass.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

◆ URShift() [2/4]

static int ComponentAce.Compression.Libs.zlib.SupportClass.URShift ( int  number,
long  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

◆ URShift() [3/4]

static long ComponentAce.Compression.Libs.zlib.SupportClass.URShift ( long  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

◆ URShift() [4/4]

static long ComponentAce.Compression.Libs.zlib.SupportClass.URShift ( long  number,
long  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

The documentation for this class was generated from the following file: