docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadBytes

    ReadBytes(byte*, int, int)

    Read multiple bytes to the stream

    Declaration
    public void ReadBytes(byte* value, int size, int offset = 0)
    Parameters
    Type Name Description
    byte* value

    Pointer to the destination buffer

    int size

    Number of bytes to read - MUST BE <= BUFFER SIZE

    int offset

    Offset of the byte buffer to store into

    ReadBytes(ref byte[], int, int)

    Read multiple bytes from the stream

    Declaration
    public void ReadBytes(ref byte[] value, int size, int offset = 0)
    Parameters
    Type Name Description
    byte[] value

    Pointer to the destination buffer

    int size

    Number of bytes to read - MUST BE <= BUFFER SIZE

    int offset

    Offset of the byte buffer to store into

    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)