Simple in memory buffer. Used for serialization, but can be used as a generic buffer too.
More...
|
| void | ResetReadPosition () |
| | Call this after adding all data and before reading data. More...
|
| |
| void | ClearData () |
| | Clears all data from the buffer. More...
|
| |
| bool | HaveData () |
| | Returns true if this buffer has data. More...
|
| |
| unsafe byte[] | GetData () |
| | Returns the buffer's data as a byte array. More...
|
| |
| unsafe void | SetData (byte[] data) |
| | Directly sets the buffer's data. More...
|
| |
| unsafe void | SetData (byte[] data, long len) |
| | Directly sets the buffer's data. More...
|
| |
|
bool | ReadBool () |
| |
|
void | Write (bool value) |
| |
|
int | ReadInt () |
| |
|
void | Write (int value) |
| |
|
float | ReadFloat () |
| |
|
void | Write (float value) |
| |
|
float[] | ReadFloatArray () |
| |
|
void | Write (float[] values) |
| |
|
int[] | ReadIntArray () |
| |
|
void | Write (int[] values) |
| |
|
Vector2 | ReadVector2 () |
| |
|
void | Write (Vector2 value) |
| |
|
Vector3 | ReadVector3 () |
| |
|
void | Write (Vector3 value) |
| |
|
Quaternion | ReadQuaternion () |
| |
|
void | Write (Quaternion value) |
| |
|
unsafe byte[] | ReadByteArray () |
| |
|
unsafe void | Write (byte[] buffer) |
| |
|
unsafe void | ReadBuffer (byte[] buffer) |
| |
|
unsafe void | WriteBuffer (byte[] buffer) |
| |
|
string | ReadString () |
| |
|
void | Write (string value) |
| |
| void | AddRef () |
| | Increments the internal reference count on this object. It is not common to use this method directly. More...
|
| |
| void | Release () |
| | Decrements the internal reference count on this object. It is not common to use this method directly. More...
|
| |
| void | Dispose () |
| | Cleans up any internal state. It is not safe to use an object after it has been disposed. More...
|
| |
Simple in memory buffer. Used for serialization, but can be used as a generic buffer too.