| Method |
Description |
| AsNativeArray |
Convert internal data buffer to NativeArray for use in entities APIs.
|
| Clear |
Moves the write position to the start of the data buffer used.
|
| Flush |
Advances the write position to the next byte boundary, writing zero bits into any padding.
|
| WriteByte |
Writes an unsigned byte to the current stream and advances the stream position by one byte.
|
| WriteBytes |
Copy NativeArray of bytes into the writer's data buffer.
|
| WriteDouble |
Writes a 8-byte floating point value to the data stream.
|
| WriteFixedString128 |
Writes a FixedString128Bytes value to the data stream.
|
| WriteFixedString32 |
Writes a FixedString32Bytes value to the data stream.
|
| WriteFixedString4096 |
Writes a FixedString4096Bytes value to the data stream.
|
| WriteFixedString512 |
Writes a FixedString512Bytes value to the data stream.
|
| WriteFixedString64 |
Writes a FixedString64Bytes value to the data stream.
|
| WriteFloat |
Writes a 4-byte floating point value to the data stream.
|
| WriteInt |
Writes a 4-byte signed integer from the current stream and advances the current position of the stream by four bytes.
|
| WriteIntNetworkByteOrder |
Writes a 4-byte signed integer from the current stream using Big-endian byte order and advances the current position of the stream by four bytes.
If the current machine is in little-endian order, the byte order will be swapped.
|
| WriteLong |
Writes an 8-byte signed long from the stream and advances the current position of the stream by eight bytes.
|
| WritePackedDouble |
Writes a 8-byte floating point value to the data stream using a StreamCompressionModel.
|
| WritePackedDoubleDelta |
Writes a 8-byte floating point value to the data stream. If the data did not change a zero bit is prepended, otherwise a 1 bit is prepended.
When reading back the data, the first bit is then checked for whether the data was changed or not.
|
| WritePackedFixedString128Delta |
Writes a delta FixedString128Bytes value to the data stream using a StreamCompressionModel.
|
| WritePackedFixedString32Delta |
Writes a FixedString32Bytes delta value to the data stream using a StreamCompressionModel.
|
| WritePackedFixedString4096Delta |
Writes a delta FixedString4096Bytes value to the data stream using a StreamCompressionModel.
|
| WritePackedFixedString512Delta |
Writes a delta FixedString512Bytes value to the data stream using a StreamCompressionModel.
|
| WritePackedFixedString64Delta |
Writes a delta FixedString64Bytes value to the data stream using a StreamCompressionModel.
|
| WritePackedFloat |
Writes a 4-byte floating point value to the data stream using a StreamCompressionModel.
|
| WritePackedFloatDelta |
Writes a 4-byte floating point value to the data stream. If the data did not change a zero bit is prepended, otherwise a 1 bit is prepended.
When reading back the data, the first bit is then checked for whether the data was changed or not.
|
| WritePackedInt |
Writes a 4-byte signed integer value to the data stream using a StreamCompressionModel.
Negative values are interleaved between positive values, i.e. (0, -1, 1, -2, 2)
|
| WritePackedIntDelta |
Writes a delta 4-byte signed integer value to the data stream using a StreamCompressionModel.
|
| WritePackedLong |
Writes a 8-byte signed long value to the data stream using a StreamCompressionModel.
|
| WritePackedLongDelta |
Writes a delta 8-byte signed long value to the data stream using a StreamCompressionModel.
|
| WritePackedUInt |
Writes a 4-byte unsigned integer value to the data stream using a StreamCompressionModel.
|
| WritePackedUIntDelta |
Writes a delta 4-byte unsigned integer value to the data stream using a StreamCompressionModel.
Note that the Uint values are cast to an Int after computing the diff.
|
| WritePackedULong |
Writes an 8-byte unsigned long value to the data stream using a StreamCompressionModel.
|
| WritePackedULongDelta |
Writes a delta 8-byte unsigned long value to the data stream using a StreamCompressionModel.
Note that the unsigned long values are cast to a signed long after computing the diff.
|
| WriteRawBits |
Appends a specified number of bits to the data stream.
|
| WriteShort |
Writes a 2-byte signed short to the current stream and advances the stream position by two bytes.
|
| WriteShortNetworkByteOrder |
Writes a 2-byte signed short to the current stream using Big-endian byte order and advances the stream position by two bytes.
If the stream is in little-endian order, the byte order will be swapped.
|
| WriteUInt |
Reads a 4-byte unsigned integer from the current stream and advances the current position of the stream by four bytes.
|
| WriteUIntNetworkByteOrder |
Writes a 4-byte unsigned integer from the current stream using Big-endian byte order and advances the current position of the stream by four bytes.
If the stream is in little-endian order, the byte order will be swapped.
|
| WriteULong |
Reads an 8-byte unsigned long from the stream and advances the current position of the stream by eight bytes.
|
| WriteUShort |
Writes a 2-byte unsigned short to the current stream and advances the stream position by two bytes.
|
| WriteUShortNetworkByteOrder |
Writes a 2-byte unsigned short to the current stream using Big-endian byte order and advances the stream position by two bytes.
If the stream is in little-endian order, the byte order will be swapped.
|