Represents a serializer for reading and writing data to a NetBitBuffer.
More...
|
| bool | Check (bool value) |
| | Checks the boolean value and writes or reads it from the buffer based on the serializer mode. More...
|
| |
| void | Serialize (ref bool value) |
| | Serializes a boolean value by writing or reading it from the buffer based on the serializer mode. More...
|
| |
| void | Serialize (ref byte value) |
| | Serializes a byte value by writing or reading it from the buffer based on the serializer mode. More...
|
| |
| void | Serialize (ref float value) |
| | Serializes a float value by writing or reading it from the buffer based on the serializer mode. More...
|
| |
| void | Serialize (ref int value) |
| | Serializes an integer value by writing or reading it from the buffer based on the serializer mode. More...
|
| |
| void | Serialize (ref string value) |
| | Serializes a string value by writing or reading it from the buffer based on the serializer mode. More...
|
| |
| void | Serialize (ref uint value) |
| | Serializes an unsigned integer value by writing or reading it from the buffer based on the serializer mode. More...
|
| |
| void | Serialize (ref ulong value) |
| | Serializes an unsigned long value by writing or reading it from the buffer based on the serializer mode. More...
|
| |
|
| NetBitBuffer * | Buffer [get] |
| | Gets the buffer associated with the serializer. More...
|
| |
| bool | Reading [get] |
| | Gets a value indicating whether the serializer is in read mode. More...
|
| |
| bool | Writing [get] |
| | Gets a value indicating whether the serializer is in write mode. More...
|
| |
Represents a serializer for reading and writing data to a NetBitBuffer.
◆ Check()
Checks the boolean value and writes or reads it from the buffer based on the serializer mode.
- Parameters
-
| value | The boolean value to check. |
- Returns
- The boolean value read from the buffer if in read mode, otherwise the value written to the buffer.
◆ Reader()
◆ Serialize() [1/7]
| void Serialize |
( |
ref bool |
value | ) |
|
Serializes a boolean value by writing or reading it from the buffer based on the serializer mode.
- Parameters
-
| value | The boolean value to serialize. |
◆ Serialize() [2/7]
| void Serialize |
( |
ref byte |
value | ) |
|
Serializes a byte value by writing or reading it from the buffer based on the serializer mode.
- Parameters
-
| value | The byte value to serialize. |
◆ Serialize() [3/7]
| void Serialize |
( |
ref float |
value | ) |
|
Serializes a float value by writing or reading it from the buffer based on the serializer mode.
- Parameters
-
| value | The float value to serialize. |
◆ Serialize() [4/7]
| void Serialize |
( |
ref int |
value | ) |
|
Serializes an integer value by writing or reading it from the buffer based on the serializer mode.
- Parameters
-
| value | The integer value to serialize. |
◆ Serialize() [5/7]
| void Serialize |
( |
ref string |
value | ) |
|
Serializes a string value by writing or reading it from the buffer based on the serializer mode.
- Parameters
-
| value | The string value to serialize. |
◆ Serialize() [6/7]
| void Serialize |
( |
ref uint |
value | ) |
|
Serializes an unsigned integer value by writing or reading it from the buffer based on the serializer mode.
- Parameters
-
| value | The unsigned integer value to serialize. |
◆ Serialize() [7/7]
| void Serialize |
( |
ref ulong |
value | ) |
|
Serializes an unsigned long value by writing or reading it from the buffer based on the serializer mode.
- Parameters
-
| value | The unsigned long value to serialize. |
◆ Writer()
◆ Buffer
Gets the buffer associated with the serializer.
◆ Reading
Gets a value indicating whether the serializer is in read mode.
◆ Writing
Gets a value indicating whether the serializer is in write mode.