C# Class ComponentAce.Compression.Libs.zlib.SupportClass

Show file Open project: Core-Techs/TiffLibrary Class Usage Examples

Public Methods

Method Description
Identity ( double literal ) : double

This method returns the literal value received

Identity ( float literal ) : float

This method returns the literal value received

Identity ( long literal ) : long

This method returns the literal value received

Identity ( ulong literal ) : ulong

This method returns the literal value received

ReadInput ( System sourceStream, byte target, int start, int count ) : Int32

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

ToByteArray ( System sourceString ) : byte[]

Converts a string to an array of bytes

ToCharArray ( byte byteArray ) : char[]

Converts an array of bytes to an array of chars

URShift ( int number, int bits ) : int

Performs an unsigned bitwise right shift with the specified number

URShift ( int number, long bits ) : int

Performs an unsigned bitwise right shift with the specified number

URShift ( long number, int bits ) : long

Performs an unsigned bitwise right shift with the specified number

URShift ( long number, long bits ) : long

Performs an unsigned bitwise right shift with the specified number

Method Details

Identity() public static method

This method returns the literal value received
public static Identity ( double literal ) : double
literal double The literal to return
return double

Identity() public static method

This method returns the literal value received
public static Identity ( float literal ) : float
literal float The literal to return
return float

Identity() public static method

This method returns the literal value received
public static Identity ( long literal ) : long
literal long The literal to return
return long

Identity() public static method

This method returns the literal value received
public static Identity ( ulong literal ) : ulong
literal ulong The literal to return
return ulong

ReadInput() public static method

Reads a number of characters from the current source Stream and writes the data to the target array at the specified index.
public static ReadInput ( System sourceStream, byte target, int start, int count ) : Int32
sourceStream System The source Stream to read from.
target byte Contains the array of characteres read from the source Stream.
start int The starting index of the target array.
count int The maximum number of characters to read from the source Stream.
return System.Int32

ToByteArray() public static method

Converts a string to an array of bytes
public static ToByteArray ( System sourceString ) : byte[]
sourceString System The string to be converted
return byte[]

ToCharArray() public static method

Converts an array of bytes to an array of chars
public static ToCharArray ( byte byteArray ) : char[]
byteArray byte The array of bytes to convert
return char[]

URShift() public static method

Performs an unsigned bitwise right shift with the specified number
public static URShift ( int number, int bits ) : int
number int Number to operate on
bits int Ammount of bits to shift
return int

URShift() public static method

Performs an unsigned bitwise right shift with the specified number
public static URShift ( int number, long bits ) : int
number int Number to operate on
bits long Ammount of bits to shift
return int

URShift() public static method

Performs an unsigned bitwise right shift with the specified number
public static URShift ( long number, int bits ) : long
number long Number to operate on
bits int Ammount of bits to shift
return long

URShift() public static method

Performs an unsigned bitwise right shift with the specified number
public static URShift ( long number, long bits ) : long
number long Number to operate on
bits long Ammount of bits to shift
return long