docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BurstableMemoryBinaryReader

    Provides a reader compatible with the Burst compiler that can read primitive types from a binary buffer in memory.

    Implements
    BinaryReader
    Namespace: Unity.Entities.Serialization
    Assembly: Unity.Entities.dll
    Syntax
    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.

    Extension Methods

    BlobAssetSerializeExtensions.Read<T>(BinaryReader)
    BinaryReaderExtensions.ReadArray<T>(BinaryReader, NativeArray<T>, int)
    BinaryReaderExtensions.ReadByte(BinaryReader)
    BinaryReaderExtensions.ReadBytes(BinaryReader, NativeArray<byte>, int, int)
    BinaryReaderExtensions.ReadInt(BinaryReader)
    BinaryReaderExtensions.ReadULong(BinaryReader)

    See Also

    MemoryBinaryReader
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)