Class BinaryReaderExtensions | Entities | 0.10.0-preview.6
docs.unity.cn
    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX