Метод | Описание | |
---|---|---|
Append ( this data, byte toAppend ) : byte[] |
Appends the specified data to the source byte array
|
|
Base64ToByteArray ( this Input ) : byte[] |
Converts base 64 string to a byte array
|
|
BinaryToByteArray ( this binary ) : byte[] |
Convert binary string representation to byte array
|
|
BinaryToDecimal ( this text ) : string |
Returns the decimal representation of a binary number.
|
|
BinaryToHex ( this text ) : string |
Returns the hexadecimal representation of a binary number.
|
|
Compress ( this data, CompressionType compressionType = CompressionType.Deflate ) : byte[] |
Compresses the data using the specified compression type
|
|
Compress ( this data, |
Compresses a string of data
|
|
DecimalToBinary ( this txt ) : string |
Returns the binary representation of a binary number.
|
|
DecimalToHex ( this txt ) : string |
Returns the hexadecimal representation of a decimal number.
|
|
Decompress ( this data, CompressionType CompressionType = CompressionType.Deflate ) : byte[] |
Decompresses the byte array that is sent in
|
|
Decompress ( this data, |
Decompresses a string of data
|
|
HexToBinary ( this hex ) : string |
Returns the binary representation of a hexadecimal number.
|
|
HexToByteArray ( this hex ) : byte[] |
Converts a hexadecimal string to a byte array representation. The string is assumed to be of even size. |
|
HexToDecimal ( this hex ) : string |
Returns the decimal representation of a hexadecimal number.
|
|
IsBinary ( this binary ) : bool |
Validate if string is a valide binary representation
|
|
IsHex ( this hex ) : bool |
Validate is string is a valide hex representation
|
|
IsUnicode ( this data ) : bool |
Determines if a byte array is unicode
|
|
ToBase64String ( this data ) : string |
Converts a byte array into a base 64 string
|
|
ToBinary ( this data ) : string |
Convert byte array to a binary representation as a string
|
|
ToByteArray ( this input, |
Converts a string to a byte array
|
|
ToEncodedString ( this data, |
Converts a byte array to a string
|
|
ToHex ( this data ) : string |
Converts a byte array to a hexadecimal string representation.
|
|
ToHexNibble ( this data ) : byte |
Convert byte to nibble (4 bit value)
|
|
ToInt32 ( this data ) : int |
Convert byte array to a 32 bit int
|
|
ToNibbleString ( this data ) : string |
Convert a byte array into a string with each byte represented as nibbles
|
Метод | Описание | |
---|---|---|
GetStream ( |
public static Append ( this data, byte toAppend ) : byte[] | ||
data | this | Byte array to be appended |
toAppend | byte | Byte array to append. |
Результат | byte[] |
public static Base64ToByteArray ( this Input ) : byte[] | ||
Input | this | Input string |
Результат | byte[] |
public static BinaryToByteArray ( this binary ) : byte[] | ||
binary | this | Binary string |
Результат | byte[] |
public static BinaryToDecimal ( this text ) : string | ||
text | this | Binary string to convert to decimal. |
Результат | string |
public static BinaryToHex ( this text ) : string | ||
text | this | Binary string to convert to hexadecimal. |
Результат | string |
public static Compress ( this data, CompressionType compressionType = CompressionType.Deflate ) : byte[] | ||
data | this | data to compress |
compressionType | CompressionType | Compression type |
Результат | byte[] |
public static Compress ( this data, |
||
data | this | data to Compress |
encodingUsing | Encoding that the data uses (defaults to UTF8) | |
compressionType | CompressionType | The compression type used |
Результат | string |
public static DecimalToBinary ( this txt ) : string | ||
txt | this | Decimal string to convert to binary. |
Результат | string |
public static DecimalToHex ( this txt ) : string | ||
txt | this | Hexadecimal string to convert to decimal. |
Результат | string |
public static Decompress ( this data, CompressionType CompressionType = CompressionType.Deflate ) : byte[] | ||
data | this | data to decompress |
CompressionType | CompressionType | The compression type used |
Результат | byte[] |
public static Decompress ( this data, |
||
data | this | data to decompress |
EncodingUsing | Encoding that the result should use (defaults to UTF8) | |
CompressionType | CompressionType | The compression type used |
Результат | string |
public static HexToBinary ( this hex ) : string | ||
hex | this | Binary string to convert to hexadecimal. |
Результат | string |
public static HexToByteArray ( this hex ) : byte[] | ||
hex | this | Hexadecimal string to convert to byte array. |
Результат | byte[] |
public static HexToDecimal ( this hex ) : string | ||
hex | this | Hexadecimal string to convert to decimal. |
Результат | string |
public static IsBinary ( this binary ) : bool | ||
binary | this | |
Результат | bool |
public static IsUnicode ( this data ) : bool | ||
data | this | Input array |
Результат | bool |
public static ToBase64String ( this data ) : string | ||
data | this | Input array |
Результат | string |
public static ToBinary ( this data ) : string | ||
data | this | The byte array to be converted to a string |
Результат | string |
public static ToByteArray ( this input, |
||
input | this | input string |
encodingUsing | The type of encoding the string is using (defaults to UTF8) | |
Результат | byte[] |
public static ToEncodedString ( this data, |
||
data | this | input array |
encodingUsing | The type of encoding the string is using (defaults to UTF8) | |
index | int | The index of the first byte to decode |
count | int | /// Number of bytes starting at the index to convert (use -1 for the entire array starting at the /// index) /// |
Результат | string |
public static ToHex ( this data ) : string | ||
data | this | Byte array to convert to hexadecimal string. |
Результат | string |
public static ToHexNibble ( this data ) : byte | ||
data | this | the byte to be converted to a nibble |
Результат | byte |
public static ToInt32 ( this data ) : int | ||
data | this | The byte array to be converted |
Результат | int |
public static ToNibbleString ( this data ) : string | ||
data | this | The byte array to be converted to a string of nibbles |
Результат | string |