{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct BurstableMemoryBinaryReader | Entities | 1.2.0-exp.3
docs.unity.cn
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: 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.

    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 © 2023 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)