Struct BurstableMemoryBinaryReader
Provides a reader compatible with the Burst compiler that can read primitive types from a binary buffer in memory.
Implements
Namespace: Unity.Entities.Serialization
Assembly: solution.dll
Syntax
[GenerateTestsForBurstCompatibility]
public struct BurstableMemoryBinaryReader : BinaryReader
Constructors
Name | Description |
---|---|
BurstableMemoryBinaryReader(byte*, long) | Initializes and returns an instance of BurstableMemoryBinaryReader. |
Properties
Name | Description |
---|---|
Position | Gets or sets the current read position of the BurstableMemoryBinaryReader. |
Methods
Name | Description |
---|---|
Dispose() | Disposes the MemoryBinaryReader. |
ReadByte() | Reads a byte and advances the current read position by a byte. |
ReadBytes(void*, int) | Reads the specified number of bytes and advances the current read position by that number of bytes. |
ReadInt() | Reads an int and advances the current read position by the number of bytes in an int. |
ReadULong() | Reads an ulong and advances the current read position by the number of bytes in an ulong. |