Photon Fusion
2.0.9
Interface for writing bits to a stream. More...
Inherited by NetBitBuffer, and NetBitBufferNull.
Public Member Functions | |
| bool | WriteBoolean (bool b) |
| Writes a boolean value to the stream. More... | |
| void | WriteBytesAligned (Span< byte > buffer) |
| Writes a sequence of bytes to the stream, aligned to byte boundaries. More... | |
| void | WriteBytesAligned (void *buffer, int length) |
| Writes a sequence of bytes to the stream, aligned to byte boundaries. More... | |
| void | WriteInt32 (int value, int bits=32) |
| Writes a 32-bit signed integer to the stream. More... | |
| void | WriteInt32VarLength (int value) |
| Writes a 32-bit signed integer to the stream with variable length encoding. More... | |
| void | WriteInt32VarLength (int value, int blockSize) |
| Writes a 32-bit signed integer to the stream with variable length encoding and a specified block size. More... | |
| void | WriteUInt64VarLength (ulong value, int blockSize) |
| Writes a 64-bit unsigned integer to the stream with variable length encoding and a specified block size. More... | |
Properties | |
| int | OffsetBits [get] |
| Gets the current offset in bits. More... | |
Interface for writing bits to a stream.
| bool WriteBoolean | ( | bool | b | ) |
Writes a boolean value to the stream.
| b | The boolean value to write. |
Implemented in NetBitBuffer, and NetBitBufferNull.
| void WriteBytesAligned | ( | Span< byte > | buffer | ) |
Writes a sequence of bytes to the stream, aligned to byte boundaries.
| buffer | A pointer to the buffer containing the bytes to write. |
Implemented in NetBitBufferNull, and NetBitBuffer.
| void WriteBytesAligned | ( | void * | buffer, |
| int | length | ||
| ) |
Writes a sequence of bytes to the stream, aligned to byte boundaries.
| buffer | A pointer to the buffer containing the bytes to write. |
| length | The number of bytes to write. |
Implemented in NetBitBufferNull, and NetBitBuffer.
| void WriteInt32 | ( | int | value, |
| int | bits = 32 |
||
| ) |
Writes a 32-bit signed integer to the stream.
| value | The 32-bit signed integer value to write. |
| bits | The number of bits to write. Default is 32. |
Implemented in NetBitBufferNull, and NetBitBuffer.
| void WriteInt32VarLength | ( | int | value | ) |
Writes a 32-bit signed integer to the stream with variable length encoding.
| value | The 32-bit signed integer value to write. |
Implemented in NetBitBufferNull, and NetBitBuffer.
| void WriteInt32VarLength | ( | int | value, |
| int | blockSize | ||
| ) |
Writes a 32-bit signed integer to the stream with variable length encoding and a specified block size.
| value | The 32-bit signed integer value to write. |
| blockSize | The block size for variable length encoding. |
Implemented in NetBitBufferNull, and NetBitBuffer.
| void WriteUInt64VarLength | ( | ulong | value, |
| int | blockSize | ||
| ) |
Writes a 64-bit unsigned integer to the stream with variable length encoding and a specified block size.
| value | The 64-bit unsigned integer value to write. |
| blockSize | The block size for variable length encoding. |
Implemented in NetBitBufferNull, and NetBitBuffer.
|
get |
Gets the current offset in bits.