docs.unity.cn
    Show / Hide Table of Contents

    Method ReadArray

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

    Reads the specified number of elements from a native array.

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

    The BinaryReader to read from.

    NativeArray<T> elements

    The native array to read of.

    Int32 count

    The number of elements to read.

    Type Parameters
    Name Description
    T

    The type of the elements in the native array.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023