docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadBytes

    ReadBytes(Buffer, int)

    Reads a series of bytes from the buffer.

    Declaration
    public static byte[] ReadBytes(this Buffer buffer, int amount)
    Parameters
    Type Name Description
    Buffer buffer
    int amount

    Number of bytes to be read from the buffer.

    Returns
    Type Description
    byte[]

    The array of bytes that has been read from the buffer.

    ReadBytes(Buffer, byte[], int, int)

    Reads a series of bytes from the buffer.

    Declaration
    public static void ReadBytes(this Buffer buffer, byte[] rhs, int offset, int amount)
    Parameters
    Type Name Description
    Buffer buffer
    byte[] rhs

    Destination array that the bytes should be written to.

    int offset

    Offset into the destination array where the bytes should be written to.

    int amount

    Number of bytes to be read from the buffer.

    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)