BurstableMemoryBinaryReader
Provides a reader compatible with the Burst compiler that can read primitive types from a binary buffer in memory.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Struct
- Namespace: Unity.Entities.Serialization
- Assembly: UnityEngine.EntitiesModule
- Implements: BinaryReader, IDisposable
public struct BurstableMemoryBinaryReader : BinaryReader, IDisposable
Remarks
Additional Resources: MemoryBinaryReader
Constructors
Constructor | Description |
|---|---|
| BurstableMemoryBinaryReader(System.Byte*,System.Int64) | Initializes and returns an instance of BurstableMemoryBinaryReader. |
Properties
Property | Description |
|---|---|
| Position | Gets or sets the current read position of the BurstableMemoryBinaryReader. |
Methods
Method | Description |
|---|---|
| Dispose | Disposes the MemoryBinaryReader. |
| ReadByte | Reads a byte and advances the current read position by a byte. |
| ReadBytes | 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. |