C# Класс ComponentAce.Compression.Libs.zlib.SupportClass

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Identity() публичный статический Метод

This method returns the literal value received
public static Identity ( double literal ) : double
literal double The literal to return
Результат double

Identity() публичный статический Метод

This method returns the literal value received
public static Identity ( float literal ) : float
literal float The literal to return
Результат float

Identity() публичный статический Метод

This method returns the literal value received
public static Identity ( long literal ) : long
literal long The literal to return
Результат long

Identity() публичный статический Метод

This method returns the literal value received
public static Identity ( ulong literal ) : ulong
literal ulong The literal to return
Результат ulong

ReadInput() публичный статический Метод

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.
Результат System.Int32

ToByteArray() публичный статический Метод

Converts a string to an array of bytes
public static ToByteArray ( System sourceString ) : byte[]
sourceString System The string to be converted
Результат byte[]

ToCharArray() публичный статический Метод

Converts an array of bytes to an array of chars
public static ToCharArray ( byte byteArray ) : char[]
byteArray byte The array of bytes to convert
Результат char[]

URShift() публичный статический Метод

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
Результат int

URShift() публичный статический Метод

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
Результат int

URShift() публичный статический Метод

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
Результат long

URShift() публичный статический Метод

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
Результат long