메소드 | 설명 | |
---|---|---|
GetBoolean ( byte data, int byteOffset, byte bitOffset ) : bool |
From the data, reads boolean at the offset.
|
|
GetBytes ( System.UInt64 value, int size ) : byte[] |
Converts the given value to a big-endian byte stream.
|
|
GetBytesUInt16 ( |
Converts the given value to a big-endian byte stream.
|
|
GetBytesUInt32 ( |
Converts the given value to a big-endian byte stream.
|
|
GetBytesUInt64 ( System.UInt64 value ) : byte[] |
Converts the given value to a big-endian byte stream.
|
|
GetDataSubset ( byte data, int offset, int length ) : byte[] |
From a given data array, get a subset of items in a deep copied array.
|
|
GetPaddedAsciiBytes ( string value, int size ) : byte[] |
Will return an array of ascii printable characters (values 0x20 to 0x7e) and will pad with zero's so that the array of bytes is always of a given size.
|
|
GetUInt16 ( byte data, int byteOffset ) : |
From the data, reads an unsigned 16 bit integer starting from the offset.
|
|
GetUInt24 ( byte data, int byteOffset ) : |
From the data, reads an unsigned 24 bit integer starting from the offset.
|
|
GetUInt32 ( byte data, int byteOffset ) : |
From the data, reads an unsigned 32 bit integer starting from the offset.
|
|
GetUInt64 ( byte data, int byteOffset ) : System.UInt64 |
From the data, reads an unsigned 64 bit integer starting from the offset.
|
|
GetUInt64 ( byte data, int byteOffset, int bitCount ) : System.UInt64 |
From the data, reads an integer value starting from the offset.
|
|
GetUInt64 ( byte data, int byteOffset, int bitCount, byte bitOffset ) : System.UInt64 |
Allows you to interpret part of a byte array as a number. Always assumes Big-Endian in the data store. |
|
SwitchEndianness ( byte data, int byteOffset, int length ) : byte[] |
For a given array of bytes, switch the endiannes of the length-bytes starting at byteOffset.
|
public static GetBoolean ( byte data, int byteOffset, byte bitOffset ) : bool | ||
data | byte | The source data |
byteOffset | int | Offset from where to start reading the boolean, in bytes. |
bitOffset | byte | In the found byte, defines the bit that will represent the boolean. |
리턴 | bool |
public static GetBytes ( System.UInt64 value, int size ) : byte[] | ||
value | System.UInt64 | The value to convert. |
size | int | How many bytes to convert (the rest will be ignored in the value). |
리턴 | byte[] |
public static GetBytesUInt16 ( |
||
value | The value to convert. | |
리턴 | byte[] |
public static GetBytesUInt32 ( |
||
value | The value to convert. | |
리턴 | byte[] |
public static GetBytesUInt64 ( System.UInt64 value ) : byte[] | ||
value | System.UInt64 | The value to convert. |
리턴 | byte[] |
public static GetDataSubset ( byte data, int offset, int length ) : byte[] | ||
data | byte | The input data (won't be altered) |
offset | int | Where in the input data to start copying files. |
length | int | The amount of bytes to copy. |
리턴 | byte[] |
public static GetPaddedAsciiBytes ( string value, int size ) : byte[] | ||
value | string | The text to convert to bytes. |
size | int | The total length of the resulting byte array. |
리턴 | byte[] |
public static GetUInt16 ( byte data, int byteOffset ) : |
||
data | byte | The source data |
byteOffset | int | Offset from where to start reading the integer, in bytes. |
리턴 |
public static GetUInt24 ( byte data, int byteOffset ) : |
||
data | byte | The source data |
byteOffset | int | Offset from where to start reading the integer, in bytes. |
리턴 |
public static GetUInt32 ( byte data, int byteOffset ) : |
||
data | byte | The source data |
byteOffset | int | Offset from where to start reading the integer, in bytes. |
리턴 |
public static GetUInt64 ( byte data, int byteOffset ) : System.UInt64 | ||
data | byte | The source data |
byteOffset | int | Offset from where to start reading the integer, in bytes. |
리턴 | System.UInt64 |
public static GetUInt64 ( byte data, int byteOffset, int bitCount ) : System.UInt64 | ||
data | byte | The source data |
byteOffset | int | Offset from where to start reading the integer, in bytes. |
bitCount | int | How many bits to read (16, 32, or something arbitrary but less than or equal to 64) |
리턴 | System.UInt64 |
public static GetUInt64 ( byte data, int byteOffset, int bitCount, byte bitOffset ) : System.UInt64 | ||
data | byte | The source data. |
byteOffset | int | Where in the data to start reading (offset in bytes) |
bitCount | int | How many bits to read (16, 32, or something arbitrary but less than or equal to 64) |
bitOffset | byte | In the first byte, at which bit to start reading the data from. |
리턴 | System.UInt64 |
public static SwitchEndianness ( byte data, int byteOffset, int length ) : byte[] | ||
data | byte | The source data. |
byteOffset | int | Where to start switching the endianness. |
length | int | How many bytes to switch. |
리턴 | byte[] |