Class BinaryReaderExtensions | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class BinaryReaderExtensions

    Inheritance
    Object
    BinaryReaderExtensions
    Namespace: Unity.Entities.Serialization
    Syntax
    public static class BinaryReaderExtensions

    Methods

    ReadArray<T>(BinaryReader, NativeArray<T>, Int32)

    Declaration
    public static void ReadArray<T>(this BinaryReader reader, NativeArray<T> elements, int count)
        where T : struct
    Parameters
    Type Name Description
    BinaryReader reader
    NativeArray<T> elements
    Int32 count
    Type Parameters
    Name Description
    T

    ReadByte(BinaryReader)

    Declaration
    public static byte ReadByte(this BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader
    Returns
    Type Description
    Byte

    ReadBytes(BinaryReader, NativeArray<Byte>, Int32, Int32)

    Declaration
    public static void ReadBytes(this BinaryReader writer, NativeArray<byte> elements, int count, int offset = 0)
    Parameters
    Type Name Description
    BinaryReader writer
    NativeArray<Byte> elements
    Int32 count
    Int32 offset

    ReadInt(BinaryReader)

    Declaration
    public static int ReadInt(this BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader
    Returns
    Type Description
    Int32

    ReadULong(BinaryReader)

    Declaration
    public static ulong ReadULong(this BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader
    Returns
    Type Description
    UInt64
    In This Article
    • Methods
      • ReadArray<T>(BinaryReader, NativeArray<T>, Int32)
      • ReadByte(BinaryReader)
      • ReadBytes(BinaryReader, NativeArray<Byte>, Int32, Int32)
      • ReadInt(BinaryReader)
      • ReadULong(BinaryReader)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023