Photon Fusion
2.1.1
Defines the interface for reading and writing elements in a byte array. More...
Inherited by ElementReaderWriterBoolean, ElementReaderWriterString< TCapacity >, ElementReaderWriterUnmanaged< T, TWordCount >, NetworkBehaviour, and NetworkBehaviour.
Public Member Functions | |
| int | GetElementHashCode (T element) |
| Calculate the hash code of an 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. | |
| ref T | ReadRef (byte *data, int index) |
| Reads a reference to an element from the specified index in the byte array. | |
| void | Write (byte *data, int index, T element) |
| Writes an element to the specified index in the byte array. | |
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 |
Implemented in ElementReaderWriterUnmanaged< T, TWordCount >.
| int GetElementWordCount | ( | ) |
Gets the word count of an element.
Implemented in ElementReaderWriterBoolean, ElementReaderWriterString< TCapacity >, and ElementReaderWriterUnmanaged< T, TWordCount >.
| 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. |
Implemented in ElementReaderWriterBoolean, ElementReaderWriterString< TCapacity >, and ElementReaderWriterUnmanaged< T, TWordCount >.
| 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. |
Implemented in ElementReaderWriterBoolean, ElementReaderWriterString< TCapacity >, and ElementReaderWriterUnmanaged< T, TWordCount >.
| 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. |
Implemented in ElementReaderWriterUnmanaged< T, TWordCount >.