docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WriteBytes

    WriteBytes(byte*, int)

    Writes a byte array (as pointer and length) to the stream.

    Declaration
    public bool WriteBytes(byte* data, int bytes)
    Parameters
    Type Name Description
    byte* data

    Pointer to the array.

    int bytes

    Length of the array.

    Returns
    Type Description
    bool

    Whether the write was successful

    WriteBytes(NativeArray<byte>)

    Copy NativeArray of bytes into the writers data buffer.

    Declaration
    public bool WriteBytes(NativeArray<byte> value)
    Parameters
    Type Name Description
    NativeArray<byte> value

    Source byte array

    Returns
    Type Description
    bool

    Whether the write was successful

    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)