docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadBytes

    ReadBytes(byte*, int)

    Read the requested number of bytes to the given pointer.

    Declaration
    public void ReadBytes(byte* data, int length)
    Parameters
    Type Name Description
    byte* data

    Pointer to write the data to.

    int length

    Number of bytes to read.

    ReadBytes(NativeArray<byte>)

    Read and copy data into the given NativeArray of bytes. The number of bytes read is the length of the provided array.

    Declaration
    public void ReadBytes(NativeArray<byte> array)
    Parameters
    Type Name Description
    NativeArray<byte> array

    Array to read the data into.

    In This Article
    Back to top
    Copyright © 2023 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)