Photon Bolt Engine API
1.3
Public Member Functions | |
| bool | CanRead () |
| Check if the Packet has 1 bit available for read More... | |
| bool | CanRead (int bits) |
| Check if the Packet has N bit available for read More... | |
| bool | CanWrite () |
| Check if the Packet has 1 bit available for write More... | |
| bool | CanWrite (int bits) |
| Check if the Packet has N bit available for write More... | |
| void | Dispose () |
| Dispose this UdpPacket and return it to the Pool More... | |
| byte[] | DuplicateData () |
| Get a copy of the internal buffer More... | |
| bool | ReadBool () |
| Read a bool from the buffer More... | |
| byte | ReadByte () |
| Read a byte from the buffer More... | |
| byte | ReadByte (int bits) |
| Read a byte from the buffer More... | |
| void | ReadByteArray (byte[] to) |
| Populate byte array with data from the internal buffer More... | |
| void | ReadByteArray (byte[] to, int count) |
| Populate byte array with data from the internal buffer More... | |
| void | ReadByteArray (byte[] to, int offset, int count) |
| Populate byte array with data from the internal buffer More... | |
| byte[] | ReadByteArray (int size) |
| Read byte array from the buffer More... | |
| byte[] | ReadByteArrayWithPrefix () |
| Read a byte array with prefix More... | |
| double | ReadDouble () |
| Read a double from the buffer More... | |
| UdpEndPoint | ReadEndPoint () |
| Read an UdpEndPoint from the buffer More... | |
| float | ReadFloat () |
| Read a float from the buffer More... | |
| Guid | ReadGuid () |
| Read a GUID from the buffer More... | |
| int | ReadInt () |
| Read a int from the buffer More... | |
| int | ReadInt (int bits) |
| Read a int from the buffer More... | |
| int | ReadInt_Shifted (int bits, int shift) |
| Read an int value More... | |
| long | ReadLong () |
| Read a long from the buffer More... | |
| long | ReadLong (int bits) |
| Read a long from the buffer More... | |
| short | ReadShort () |
| Read a short from the buffer More... | |
| short | ReadShort (int bits) |
| Read a short from the buffer More... | |
| string | ReadString () |
| Read string from the buffer More... | |
| string | ReadString (Encoding encoding) |
| Read string from the buffer More... | |
| uint | ReadUInt () |
| Read a uint from the buffer More... | |
| uint | ReadUInt (int bits) |
| Read a uint from the buffer More... | |
| ulong | ReadULong () |
| Read a ulong from the buffer More... | |
| ulong | ReadULong (int bits) |
| Read a ulong from the buffer More... | |
| ushort | ReadUShort () |
| Read a ushort from the buffer More... | |
| ushort | ReadUShort (int bits) |
| Read a ushort from the buffer More... | |
| void | Serialize (ref int value, int bits) |
| Serialize a int into the buffer if the Packet is in Write mode, or read from the buffer otherwise More... | |
| void | Serialize (ref uint value, int bits) |
| Serialize a uint into the buffer if the Packet is in Write mode, or read from the buffer otherwise More... | |
| override string | ToString () |
| String version of UdpPacket More... | |
| UdpPacket (byte[] arr, int size, UdpPacketPool pool) | |
| UdpPacket (byte[] arr, UdpPacketPool pool) | |
| UdpPacket (UdpPacketPool pool) | |
| bool | WriteBool (bool value) |
| Write a bool to the buffer More... | |
| void | WriteByte (byte value) |
| Write a byte into the buffer More... | |
| void | WriteByte (byte value, int bits) |
| Write a byte into the buffer More... | |
| void | WriteByteArray (byte[] from) |
| Write a byte array into the buffer More... | |
| void | WriteByteArray (byte[] from, int count) |
| Write a byte array into the buffer More... | |
| void | WriteByteArray (byte[] from, int offset, int count) |
| Write a byte array into the buffer More... | |
| void | WriteByteArrayLengthPrefixed (byte[] array, int maxLength) |
| Write a byte array into the buffer with a prefix to delimit its size More... | |
| void | WriteByteArrayWithPrefix (byte[] array) |
| Write a byte array into the buffer with a prefix to delimit its size More... | |
| void | WriteDouble (double value) |
| Write a double into the buffer More... | |
| void | WriteEndPoint (UdpEndPoint endpoint) |
| Serialize an UdpEndPoint into the buffer More... | |
| void | WriteFloat (float value) |
| Write a float into the buffer More... | |
| void | WriteGuid (Guid guid) |
| Write a GUID into the buffer More... | |
| void | WriteInt (int value) |
| Write a int into the buffer More... | |
| void | WriteInt (int value, int bits) |
| Write a int into the buffer More... | |
| void | WriteInt_Shifted (int value, int bits, int shift) |
| Write an int value More... | |
| void | WriteLong (long value) |
| Write a long into the buffer More... | |
| void | WriteLong (long value, int bits) |
| Write a long into the buffer More... | |
| void | WriteShort (short value) |
| Write a short into the buffer More... | |
| void | WriteShort (short value, int bits) |
| Write a short into the buffer More... | |
| void | WriteString (string value) |
| Write a string into the buffer using UTF8 as Encoding More... | |
| void | WriteString (string value, Encoding encoding) |
| Write a string into the buffer More... | |
| void | WriteString (string value, Encoding encoding, int length) |
| Write a string into the buffer More... | |
| void | WriteUInt (uint value) |
| Write a uint into the buffer More... | |
| void | WriteUInt (uint value, int bits) |
| Write a uint into the buffer More... | |
| void | WriteULong (ulong value) |
| Write a ulong into the buffer More... | |
| void | WriteULong (ulong value, int bits) |
| Write a ulong into the buffer More... | |
| void | WriteUShort (ushort value) |
| Write a ushort into the buffer More... | |
| void | WriteUShort (ushort value, int bits) |
| Write a ushort into the buffer More... | |
Public Attributes | |
| bool | Write |
| Signal if this package is writable More... | |
Properties | |
| byte[] | ByteBuffer [get] |
| Buffer that will contain all Packet data More... | |
| bool | Done [get] |
| Signal if this Packet is full. If its current UdpPacket.Position is equals to its total UdpPacket.Size More... | |
| bool | Overflowing [get] |
| Signal if the packet is overflowing. If its current UdpPacket.Position is greater than its total UdpPacket.Size More... | |
| int | Position [get, set] |
| Current position within the internal buffer More... | |
| int | Size [get, set] |
| Total length in bits of the internal buffer More... | |
| object | UserToken [get, set] |
| A user-assignable object More... | |
|
inline |
|
inline |
|
inline |
|
inline |
Check if the Packet has 1 bit available for read
|
inline |
Check if the Packet has N bit available for read
| bits | Number of bits available to read |
|
inline |
Check if the Packet has 1 bit available for write
|
inline |
Check if the Packet has N bit available for write
| bits | Number of bits available to write |
|
inline |
Dispose this UdpPacket and return it to the Pool
|
inline |
Get a copy of the internal buffer
|
inline |
Read a bool from the buffer
|
inline |
Read a byte from the buffer
|
inline |
Read a byte from the buffer
| bits | Number of bits to use when reading |
|
inline |
Populate byte array with data from the internal buffer
| to | Byte array to be filled with data |
|
inline |
Populate byte array with data from the internal buffer
| to | Byte array to be filled with data |
| count | Number of element to be read |
|
inline |
Populate byte array with data from the internal buffer
| to | Byte array to be filled with data |
| offset | Offset from the beginning of the array |
| count | Number of element to be read |
|
inline |
Read byte array from the buffer
| size | Number of elements to read |
|
inline |
Read a byte array with prefix
|
inline |
Read a double from the buffer
|
inline |
Read an UdpEndPoint from the buffer
|
inline |
Read a float from the buffer
|
inline |
Read a GUID from the buffer
|
inline |
Read a int from the buffer
|
inline |
Read a int from the buffer
| bits | Number of bits to use when reading |
|
inline |
Read an int value
| bits | Number of bits to read |
| shift | Number of bits to shift |
|
inline |
Read a long from the buffer
|
inline |
Read a long from the buffer
| bits | Number of bits to use when reading |
|
inline |
Read a short from the buffer
|
inline |
Read a short from the buffer
| bits | Number of bits to use when reading |
|
inline |
Read string from the buffer
|
inline |
Read string from the buffer
| encoding | String encoding |
|
inline |
Read a uint from the buffer
|
inline |
Read a uint from the buffer
| bits | Number of bits to use when reading |
|
inline |
Read a ulong from the buffer
|
inline |
Read a ulong from the buffer
| bits | Number of bits to use when reading |
|
inline |
Read a ushort from the buffer
|
inline |
Read a ushort from the buffer
| bits | Number of bits to use when reading |
|
inline |
Serialize a int into the buffer if the Packet is in Write mode, or read from the buffer otherwise
| value | Int value to be written or read |
| bits | Number of bits to use when writing or reading |
|
inline |
Serialize a uint into the buffer if the Packet is in Write mode, or read from the buffer otherwise
| value | UInt value to be written or read |
| bits | Number of bits to use when writing or reading |
|
inline |
String version of UdpPacket
|
inline |
Write a bool to the buffer
| value | Bool to be written |
|
inline |
Write a byte into the buffer
| value | Byte to be written |
|
inline |
Write a byte into the buffer
| value | Byte value to write |
| bits | Number of bits to use when writing |
|
inline |
Write a byte array into the buffer
| from | Byte array to be written |
|
inline |
Write a byte array into the buffer
| from | Byte array to be written |
| count | Number of elements to be written |
|
inline |
Write a byte array into the buffer
| from | Byte array to be written |
| offset | Offset from the beginning of the array |
| count | Number of elements to be written |
|
inline |
Write a byte array into the buffer with a prefix to delimit its size
| array | Byte array to be written |
| maxLength | Max length of the array |
|
inline |
Write a byte array into the buffer with a prefix to delimit its size
| array | Byte array to be written |
|
inline |
Write a double into the buffer
| value | Double value to be written |
|
inline |
Serialize an UdpEndPoint into the buffer
| endpoint | EndPoint to be written |
|
inline |
Write a float into the buffer
| value | Float value to be written |
|
inline |
Write a GUID into the buffer
| guid | GUID to be written |
|
inline |
Write a int into the buffer
| value | UInt value to be written |
|
inline |
Write a int into the buffer
| value | Int value to be written |
| bits | Number of bits to use when writing |
|
inline |
Write an int value
| value | Value to be written |
| bits | Number of bits to write |
| shift | Number of bits to shift |
|
inline |
Write a long into the buffer
| value | Long value to be written |
|
inline |
Write a long into the buffer
| value | Long value to be written |
| bits | Number of bits to use when writing |
|
inline |
Write a short into the buffer
| value | Short value to be written |
|
inline |
Write a short into the buffer
| value | Short value to be written |
| bits | Number of bits to use when writing |
|
inline |
Write a string into the buffer using UTF8 as Encoding
| value | String value to be written |
|
inline |
Write a string into the buffer
| value | String value to be written |
| encoding | String encoding |
|
inline |
Write a string into the buffer
| value | String value to be written |
| encoding | String encoding |
| length | Max length of the string to be written |
|
inline |
Write a uint into the buffer
| value | UInt value to be written |
|
inline |
Write a uint into the buffer
| value | UInt value to be written |
| bits | Number of bits to use when writing |
|
inline |
Write a ulong into the buffer
| value | ULong value to be written |
|
inline |
Write a ulong into the buffer
| value | ULong value to be written |
| bits | Number of bits to use when writing |
|
inline |
Write a ushort into the buffer
| value | UShort to be written |
|
inline |
Write a ushort into the buffer
| value | UShort to be written |
| bits | Number of bits to use when writing |
| bool UdpKit.UdpPacket.Write |
Signal if this package is writable
|
get |
Buffer that will contain all Packet data
|
get |
Signal if this Packet is full. If its current UdpPacket.Position is equals to its total UdpPacket.Size
|
get |
Signal if the packet is overflowing. If its current UdpPacket.Position is greater than its total UdpPacket.Size
|
getset |
Current position within the internal buffer
|
getset |
Total length in bits of the internal buffer
|
getset |
A user-assignable object