docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadBytes

    ReadBytes(void*, int)

    Reads the specified number of bytes and advances the current read position by that number of bytes.

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

    The read data.

    int bytes

    The number of bytes to read.

    Implements
    BinaryReader.ReadBytes(void*, int)
    Exceptions
    Type Condition
    ArgumentException

    Thrown if attempting read beyond the end of the memory block.

    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)