{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Constructor DataStreamWriter | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor DataStreamWriter

    DataStreamWriter(int, AllocatorHandle)

    Initializes a new instance of the DataStreamWriter struct.

    Declaration
    public DataStreamWriter(int length, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    int length

    The number of bytes available in the buffer.

    AllocatorManager.AllocatorHandle allocator

    The Allocator used to allocate the memory.

    DataStreamWriter(NativeArray<byte>)

    Initializes a new instance of the DataStreamWriter struct with a NativeArray<byte>

    Declaration
    public DataStreamWriter(NativeArray<byte> data)
    Parameters
    Type Name Description
    NativeArray<byte> data

    The buffer to attach to the DataStreamWriter.

    DataStreamWriter(byte*, int)

    Initializes a new instance of the DataStreamWriter struct with a memory we don't own

    Declaration
    public DataStreamWriter(byte* data, int length)
    Parameters
    Type Name Description
    byte* data

    Pointer to the data

    int length

    Length of the data

    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)