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

    Show / Hide Table of Contents

    Method ReadNextArray

    ReadNextArray<T>(out int)

    Reads an array from the append buffer.

    Declaration
    public void* ReadNextArray<T>(out int length) where T : unmanaged
    Parameters
    Type Name Description
    int length

    Output which is the number of elements in the read array.

    Returns
    Type Description
    void*

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

    Type Parameters
    Name Description
    T

    The type of elements in the array to read.

    Remarks

    An array stored in the append buffer starts with an int specifying the number of values in the array. The first element of an array immediately follows this int.

     Advances the reader's offset by the size of the array (plus an int).
    
    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)