Documentation

Unity Engine


Unity Engine


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

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

PositionGets or sets the current read position of the BurstableMemoryBinaryReader.

Methods

Method

Description

DisposeDisposes the MemoryBinaryReader.
ReadByteReads a byte and advances the current read position by a byte.
ReadBytesReads the specified number of bytes and advances the current read position by that number of bytes.
ReadIntReads an int and advances the current read position by the number of bytes in an int.
ReadULongReads an ulong and advances the current read position by the number of bytes in an ulong.