{!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} Method ReadNext | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadNext

    ReadNext<T>(out T)

    Reads an element from the append buffer.

    Declaration
    public void ReadNext<T>(out T value) where T : unmanaged
    Parameters
    Type Name Description
    T value

    Output for the element read.

    Type Parameters
    Name Description
    T

    The type of element to read.

    Remarks

    Advances the reader's offset by the size of T.

    ReadNext<T>()

    Reads an element from the append buffer.

    Declaration
    public T ReadNext<T>() where T : unmanaged
    Returns
    Type Description
    T

    The element read.

    Type Parameters
    Name Description
    T

    The type of element to read.

    Remarks

    Advances the reader's offset by the size of T.

    ReadNext(int)

    Reads an element from the append buffer.

    Declaration
    public void* ReadNext(int structSize)
    Parameters
    Type Name Description
    int structSize

    The size of the element to read.

    Returns
    Type Description
    void*

    A pointer to where the read element resides in the append buffer.

    Remarks

    Advances the reader's offset by structSize.

    ReadNext<T>(out NativeArray<T>, AllocatorHandle)

    Reads an element from the append buffer.

    Declaration
    public void ReadNext<T>(out NativeArray<T> value, AllocatorManager.AllocatorHandle allocator) where T : unmanaged
    Parameters
    Type Name Description
    NativeArray<T> value

    Outputs a new array with length of 1. The read element is copied to the single index of this array.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    Type Parameters
    Name Description
    T

    The type of element to read.

    Remarks

    Advances the reader's offset by the size of T.

    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)