![]() |
Public Member Functions | |
NetickBuffer (int capacity=NetickBuffer.DEFAULT_CAPACITY) | |
void | Clear () |
void | CopyFromBuffer (NetickBuffer buffer) |
void | WriteStructArray< T > (T[] array) |
T[] | ReadStructArray< T > (NetickBuffer buffer) |
void | WriteFloat (float value) |
void | WriteShort (short value) |
void | WriteUShort (ushort value) |
void | WriteEnum (int enu) |
int | ReadEnum () |
void | WriteDouble (double value) |
void | WriteEnumAsShort (ValueType value) |
float | ReadFloat () |
short | ReadShort () |
ushort | ReadUShort () |
double | ReadDouble () |
ValueType | ReadEnumAsShort () |
float | ReadFloatCompressed (FloatCompressor compressor) |
int | ReadIntCompressed (IntCompressor compressor) |
void | WriteFloatCompressed (FloatCompressor compressor, float value) |
void | WriteIntCompressed (IntCompressor compressor, int value) |
void | WriteEnumArray (int[] array) |
void | WriteBoolArray (bool[] array) |
void | WriteByteArray (Byte[] array) |
void | WriteIntArray (int[] array) |
void | WriteInt64Array (Int64[] array) |
void | WriteUIntArray (uint[] array) |
void | WriteUInt64Array (UInt64[] array) |
void | WriteShortArray (short[] array) |
void | WriteUShortArray (ushort[] array) |
void | WriteFloatArray (float[] array) |
void | WriteDoubleArray (Double[] array) |
void | WriteStringArray (string[] array) |
int[] | ReadEnumArray () |
bool[] | ReadBoolArray () |
Byte[] | ReadByteArray () |
int[] | ReadIntArray () |
Int64[] | ReadInt64Array () |
uint[] | ReadUIntArray () |
UInt64[] | ReadUInt64Array () |
short[] | ReadShortArray () |
ushort[] | ReadUShortArray () |
float[] | ReadFloatArray () |
Double[] | ReadDoubleArray () |
string[] | ReadStringArray () |
void | WriteVector4 (Vector4 value) |
void | WriteVector3 (Vector3 value) |
void | WriteVector2 (Vector2 value) |
void | WriteQuaternion (Quaternion value) |
void | WriteVector4Compressed (FloatCompressor componentCompressor, Vector4 value) |
void | WriteVector3Compressed (FloatCompressor componentCompressor, Vector3 value) |
void | WriteVector2Compressed (FloatCompressor componentCompressor, Vector2 value) |
void | WriteVector4WithPrec (Vector4 value, float prec) |
void | WriteVector3WithPrec (Vector3 value, float prec) |
void | WriteVector2WithPrec (Vector2 value, float prec) |
void | WriteQuaternionCompressed (FloatCompressor componentCompressor, Quaternion value) |
void | WriteQuaternionWithPrec (Quaternion value, float prec) |
void | WriteColor (Color color) |
void | WriteColor32 (Color32 color32) |
void | WriteRay (Ray ray) |
void | WriteRay2D (Ray2D ray2d) |
void | WriteVector2Array (Vector2[] array) |
void | WriteVector3Array (Vector3[] array) |
void | WriteVector4Array (Vector4[] array) |
void | WriteQuaternionArray (Quaternion[] array) |
void | WriteRayArray (Ray[] array) |
void | WriteRay2DArray (Ray2D[] array) |
void | WriteColorArray (Color[] array) |
void | WriteColor32Array (Color32[] array) |
Vector3 | ReadVector4 () |
Vector3 | ReadVector3 () |
Vector2 | ReadVector2 () |
Quaternion | ReadQuaternion () |
Color | ReadColor () |
Color32 | ReadColor32 () |
Ray | ReadRay () |
Ray2D | ReadRay2D () |
Vector4 | ReadVector4Compressed (FloatCompressor componentCompressor) |
Vector3 | ReadVector3Compressed (FloatCompressor componentCompressor) |
Vector2 | ReadVector2Compressed (FloatCompressor componentCompressor) |
Vector4 | ReadVector4WithPrec (float prec) |
Vector3 | ReadVector3WithPrec (float prec) |
Vector2 | ReadVector2WithPrec (float prec) |
Quaternion | ReadQuaternionCompressedWithPrec (float prec) |
Quaternion | ReadQuaternionCompressed (FloatCompressor componentCompressor) |
Vector2[] | ReadVector2Array () |
Vector3[] | ReadVector3Array () |
Vector4[] | ReadVector4Array () |
Quaternion[] | ReadQuaternionArray () |
Ray[] | ReadRayArray () |
Ray2D[] | ReadRay2DArray () |
Color[] | ReadColorArray () |
Color32[] | ReadColor32Array () |
void | WriteBitsULong (int numBits, ulong value) |
void | WriteBits (int numBits, uint value) |
ulong | ReadBitsULong (int numBits) |
uint | ReadBits (int numBits) |
uint | Peek (int numBits) |
int | Store (byte[] data) |
void | Load (byte[] data, int length) |
void | WriteByte (byte val) |
byte | ReadByte () |
byte | PeekByte () |
void | WriteUInt32 (uint value) |
void | WriteInt32 (int value) |
uint | ReadUInt32 () |
int | ReadInt32 () |
void | WriteUInt64 (ulong value) |
void | WriteInt64 (long value) |
ulong | ReadUInt64 () |
long | ReadInt64 () |
uint | PeekVarUInt () |
void | WriteVarInt (int val) |
int | ReadVarInt () |
int | PeekVarInt () |
void | WriteBool (bool value) |
bool | ReadBool () |
bool | PeekBool () |
void | WriteString (string value) |
string | ReadString () |
override string | ToString () |
Properties | |
int | SizeInBytes [get] |
bool | IsDone [get] |
Netick.NetickBuffer.NetickBuffer | ( | int | capacity = NetickBuffer.DEFAULT_CAPACITY | ) |
Capacity is in data chunks: uint = 4 bytes
void Netick.NetickBuffer.Clear | ( | ) |
Clears the buffer - without overwitting.
void Netick.NetickBuffer.CopyFromBuffer | ( | NetickBuffer | buffer | ) |
void Netick.NetickBuffer.Load | ( | byte[] | data, |
int | length | ||
) |
uint Netick.NetickBuffer.Peek | ( | int | numBits | ) |
bool Netick.NetickBuffer.PeekBool | ( | ) |
byte Netick.NetickBuffer.PeekByte | ( | ) |
int Netick.NetickBuffer.PeekVarInt | ( | ) |
uint Netick.NetickBuffer.PeekVarUInt | ( | ) |
uint Netick.NetickBuffer.ReadBits | ( | int | numBits | ) |
ulong Netick.NetickBuffer.ReadBitsULong | ( | int | numBits | ) |
bool Netick.NetickBuffer.ReadBool | ( | ) |
bool[] Netick.NetickBuffer.ReadBoolArray | ( | ) |
byte Netick.NetickBuffer.ReadByte | ( | ) |
Byte[] Netick.NetickBuffer.ReadByteArray | ( | ) |
Color Netick.NetickBuffer.ReadColor | ( | ) |
Color32 Netick.NetickBuffer.ReadColor32 | ( | ) |
Color32[] Netick.NetickBuffer.ReadColor32Array | ( | ) |
Color[] Netick.NetickBuffer.ReadColorArray | ( | ) |
double Netick.NetickBuffer.ReadDouble | ( | ) |
Double[] Netick.NetickBuffer.ReadDoubleArray | ( | ) |
int Netick.NetickBuffer.ReadEnum | ( | ) |
int[] Netick.NetickBuffer.ReadEnumArray | ( | ) |
ValueType Netick.NetickBuffer.ReadEnumAsShort | ( | ) |
float Netick.NetickBuffer.ReadFloat | ( | ) |
float[] Netick.NetickBuffer.ReadFloatArray | ( | ) |
float Netick.NetickBuffer.ReadFloatCompressed | ( | FloatCompressor | compressor | ) |
int Netick.NetickBuffer.ReadInt32 | ( | ) |
long Netick.NetickBuffer.ReadInt64 | ( | ) |
Int64[] Netick.NetickBuffer.ReadInt64Array | ( | ) |
int[] Netick.NetickBuffer.ReadIntArray | ( | ) |
int Netick.NetickBuffer.ReadIntCompressed | ( | IntCompressor | compressor | ) |
Quaternion Netick.NetickBuffer.ReadQuaternion | ( | ) |
Quaternion[] Netick.NetickBuffer.ReadQuaternionArray | ( | ) |
Quaternion Netick.NetickBuffer.ReadQuaternionCompressed | ( | FloatCompressor | componentCompressor | ) |
Quaternion Netick.NetickBuffer.ReadQuaternionCompressedWithPrec | ( | float | prec | ) |
Ray Netick.NetickBuffer.ReadRay | ( | ) |
Ray2D Netick.NetickBuffer.ReadRay2D | ( | ) |
Ray2D[] Netick.NetickBuffer.ReadRay2DArray | ( | ) |
Ray[] Netick.NetickBuffer.ReadRayArray | ( | ) |
short Netick.NetickBuffer.ReadShort | ( | ) |
short[] Netick.NetickBuffer.ReadShortArray | ( | ) |
string Netick.NetickBuffer.ReadString | ( | ) |
string[] Netick.NetickBuffer.ReadStringArray | ( | ) |
T[] Netick.NetickBuffer.ReadStructArray< T > | ( | NetickBuffer | buffer | ) |
T | : | ISerializable |
uint Netick.NetickBuffer.ReadUInt32 | ( | ) |
ulong Netick.NetickBuffer.ReadUInt64 | ( | ) |
UInt64[] Netick.NetickBuffer.ReadUInt64Array | ( | ) |
uint[] Netick.NetickBuffer.ReadUIntArray | ( | ) |
ushort Netick.NetickBuffer.ReadUShort | ( | ) |
ushort[] Netick.NetickBuffer.ReadUShortArray | ( | ) |
int Netick.NetickBuffer.ReadVarInt | ( | ) |
Vector2 Netick.NetickBuffer.ReadVector2 | ( | ) |
Vector2[] Netick.NetickBuffer.ReadVector2Array | ( | ) |
Vector2 Netick.NetickBuffer.ReadVector2Compressed | ( | FloatCompressor | componentCompressor | ) |
Vector2 Netick.NetickBuffer.ReadVector2WithPrec | ( | float | prec | ) |
Vector3 Netick.NetickBuffer.ReadVector3 | ( | ) |
Vector3[] Netick.NetickBuffer.ReadVector3Array | ( | ) |
Vector3 Netick.NetickBuffer.ReadVector3Compressed | ( | FloatCompressor | componentCompressor | ) |
Vector3 Netick.NetickBuffer.ReadVector3WithPrec | ( | float | prec | ) |
Vector3 Netick.NetickBuffer.ReadVector4 | ( | ) |
Vector4[] Netick.NetickBuffer.ReadVector4Array | ( | ) |
Vector4 Netick.NetickBuffer.ReadVector4Compressed | ( | FloatCompressor | componentCompressor | ) |
Vector4 Netick.NetickBuffer.ReadVector4WithPrec | ( | float | prec | ) |
int Netick.NetickBuffer.Store | ( | byte[] | data | ) |
override string Netick.NetickBuffer.ToString | ( | ) |
void Netick.NetickBuffer.WriteBits | ( | int | numBits, |
uint | value | ||
) |
void Netick.NetickBuffer.WriteBitsULong | ( | int | numBits, |
ulong | value | ||
) |
void Netick.NetickBuffer.WriteBool | ( | bool | value | ) |
void Netick.NetickBuffer.WriteBoolArray | ( | bool[] | array | ) |
void Netick.NetickBuffer.WriteByte | ( | byte | val | ) |
void Netick.NetickBuffer.WriteByteArray | ( | Byte[] | array | ) |
void Netick.NetickBuffer.WriteColor | ( | Color | color | ) |
void Netick.NetickBuffer.WriteColor32 | ( | Color32 | color32 | ) |
void Netick.NetickBuffer.WriteColor32Array | ( | Color32[] | array | ) |
void Netick.NetickBuffer.WriteColorArray | ( | Color[] | array | ) |
void Netick.NetickBuffer.WriteDouble | ( | double | value | ) |
void Netick.NetickBuffer.WriteDoubleArray | ( | Double[] | array | ) |
void Netick.NetickBuffer.WriteEnum | ( | int | enu | ) |
void Netick.NetickBuffer.WriteEnumArray | ( | int[] | array | ) |
void Netick.NetickBuffer.WriteEnumAsShort | ( | ValueType | value | ) |
void Netick.NetickBuffer.WriteFloat | ( | float | value | ) |
void Netick.NetickBuffer.WriteFloatArray | ( | float[] | array | ) |
void Netick.NetickBuffer.WriteFloatCompressed | ( | FloatCompressor | compressor, |
float | value | ||
) |
void Netick.NetickBuffer.WriteInt32 | ( | int | value | ) |
void Netick.NetickBuffer.WriteInt64 | ( | long | value | ) |
void Netick.NetickBuffer.WriteInt64Array | ( | Int64[] | array | ) |
void Netick.NetickBuffer.WriteIntArray | ( | int[] | array | ) |
void Netick.NetickBuffer.WriteIntCompressed | ( | IntCompressor | compressor, |
int | value | ||
) |
void Netick.NetickBuffer.WriteQuaternion | ( | Quaternion | value | ) |
void Netick.NetickBuffer.WriteQuaternionArray | ( | Quaternion[] | array | ) |
void Netick.NetickBuffer.WriteQuaternionCompressed | ( | FloatCompressor | componentCompressor, |
Quaternion | value | ||
) |
void Netick.NetickBuffer.WriteQuaternionWithPrec | ( | Quaternion | value, |
float | prec | ||
) |
void Netick.NetickBuffer.WriteRay | ( | Ray | ray | ) |
void Netick.NetickBuffer.WriteRay2D | ( | Ray2D | ray2d | ) |
void Netick.NetickBuffer.WriteRay2DArray | ( | Ray2D[] | array | ) |
void Netick.NetickBuffer.WriteRayArray | ( | Ray[] | array | ) |
void Netick.NetickBuffer.WriteShort | ( | short | value | ) |
void Netick.NetickBuffer.WriteShortArray | ( | short[] | array | ) |
void Netick.NetickBuffer.WriteString | ( | string | value | ) |
void Netick.NetickBuffer.WriteStringArray | ( | string[] | array | ) |
void Netick.NetickBuffer.WriteStructArray< T > | ( | T[] | array | ) |
T | : | ISerializable |
void Netick.NetickBuffer.WriteUInt32 | ( | uint | value | ) |
void Netick.NetickBuffer.WriteUInt64 | ( | ulong | value | ) |
void Netick.NetickBuffer.WriteUInt64Array | ( | UInt64[] | array | ) |
void Netick.NetickBuffer.WriteUIntArray | ( | uint[] | array | ) |
void Netick.NetickBuffer.WriteUShort | ( | ushort | value | ) |
void Netick.NetickBuffer.WriteUShortArray | ( | ushort[] | array | ) |
void Netick.NetickBuffer.WriteVarInt | ( | int | val | ) |
void Netick.NetickBuffer.WriteVector2 | ( | Vector2 | value | ) |
void Netick.NetickBuffer.WriteVector2Array | ( | Vector2[] | array | ) |
void Netick.NetickBuffer.WriteVector2Compressed | ( | FloatCompressor | componentCompressor, |
Vector2 | value | ||
) |
void Netick.NetickBuffer.WriteVector2WithPrec | ( | Vector2 | value, |
float | prec | ||
) |
void Netick.NetickBuffer.WriteVector3 | ( | Vector3 | value | ) |
void Netick.NetickBuffer.WriteVector3Array | ( | Vector3[] | array | ) |
void Netick.NetickBuffer.WriteVector3Compressed | ( | FloatCompressor | componentCompressor, |
Vector3 | value | ||
) |
void Netick.NetickBuffer.WriteVector3WithPrec | ( | Vector3 | value, |
float | prec | ||
) |
void Netick.NetickBuffer.WriteVector4 | ( | Vector4 | value | ) |
void Netick.NetickBuffer.WriteVector4Array | ( | Vector4[] | array | ) |
void Netick.NetickBuffer.WriteVector4Compressed | ( | FloatCompressor | componentCompressor, |
Vector4 | value | ||
) |
void Netick.NetickBuffer.WriteVector4WithPrec | ( | Vector4 | value, |
float | prec | ||
) |
|
get |
Returns true if there is nothing left to read.
|
get |
Size the buffer will require in bytes.