docs.unity.cn
    Show / Hide Table of Contents

    Method ReadBytes

    ReadBytes(Void*, Int32)

    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.

    Int32 bytes

    The number of bytes to read.

    Implements
    BinaryReader.ReadBytes(Void*, Int32)
    Exceptions
    Type Condition
    ArgumentException

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

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023