{!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 RetrievePayloadBuffer | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RetrievePayloadBuffer

    RetrievePayloadBuffer(PayloadHandle, out NativeArray<byte>)

    Retrieves a NativeArray to safely access Payload memory.

    Declaration
    public bool RetrievePayloadBuffer(PayloadHandle handle, out NativeArray<byte> payloadBuffer)
    Parameters
    Type Name Description
    PayloadHandle handle

    A valid PayloadHandle value for the Payload buffer to access.

    NativeArray<byte> payloadBuffer

    NativeArray that allows safe access to the allocated Payload buffer.

    Returns
    Type Description
    bool

    True if successfully accessed Payload buffer.

    Remarks

    See RetrievePayloadBuffer(PayloadHandle, bool, out NativeArray<byte>)

    RetrievePayloadBuffer(PayloadHandle, bool, out NativeArray<byte>)

    Retrieves a NativeArray to safely access Payload memory.

    Declaration
    public bool RetrievePayloadBuffer(PayloadHandle handle, bool readWriteAccess, out NativeArray<byte> payloadBuffer)
    Parameters
    Type Name Description
    PayloadHandle handle

    A valid PayloadHandle value for the Payload buffer to access.

    bool readWriteAccess

    True to allow write-access to the returned NativeArray, otherwise it's read-only

    NativeArray<byte> payloadBuffer

    NativeArray that allows safe access to the allocated Payload buffer.

    Returns
    Type Description
    bool

    True if successfully accessed Payload buffer.

    Remarks

    Listeners must call this to read the log message data when processing a LogMessage. The passed out NativeArray is only intended for immediate reading/writing into the buffer; the variable must not be saved.

    By default the return NativeArray is read-only, since typically Listeners only need to de-serialize the buffer contents and don't need to write into the buffer.

    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)