Defines the interface for reading and writing elements in a byte array. More...
Public Member Functions | |
int | GetElementHashCode (T element) |
Calculate the hash code of an element. More... | |
int | GetElementWordCount () |
Gets the word count of an element. More... | |
T | Read (byte *data, int index) |
Reads an element from the specified index in the byte array. More... | |
ref T | ReadRef (byte *data, int index) |
Reads a reference to an element from the specified index in the byte array. More... | |
void | Write (byte *data, int index, T element) |
Writes an element to the specified index in the byte array. More... | |
Defines the interface for reading and writing elements in a byte array.
T | The type of the elements. |
int GetElementHashCode | ( | T | element | ) |
Calculate the hash code of an element.
element |
int GetElementWordCount | ( | ) |
Gets the word count of an element.
T Read | ( | byte * | data, |
int | index | ||
) |
Reads an element from the specified index in the byte array.
data | The byte array. |
index | The index of the element. |
ref T ReadRef | ( | byte * | data, |
int | index | ||
) |
Reads a reference to an element from the specified index in the byte array.
data | The byte array. |
index | The index of the element. |
void Write | ( | byte * | data, |
int | index, | ||
T | element | ||
) |
Writes an element to the specified index in the byte array.
data | The byte array. |
index | The index at which to write the element. |
element | The element to write. |