docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadArray

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

    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.

    int count

    The number of elements to read.

    Type Parameters
    Name Description
    T

    The type of the elements in the native array.

    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)