docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadBytes

    ReadBytes(BinaryReader, NativeArray<byte>, int, int)

    Reads the specified number of elements from a native byte array.

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

    The BinaryReader to read from.

    NativeArray<byte> elements

    The native array to read of.

    int count

    The number of elements to read.

    int offset

    The offset at which to start reading.

    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)