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

    Show / Hide Table of Contents

    Struct HeaderData

    Decodes payload for LogMessages

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Logging
    Assembly: solution.dll
    Syntax
    [BurstCompile]
    public readonly struct HeaderData

    Fields

    Name Description
    ContextBufferCount

    Payload handles that are context buffers

    DecorationBufferCount

    Payload handles that are decoration buffers

    Error

    Error code that was detected during the parsing of the binary data

    MessageBufferLength

    Message buffer length in bytes

    MessageBufferPointer

    Pointer to message buffer UTF8 string

    Payloads

    Payload handles attached to the LogMessage

    PayloadsCount

    Count of payload handles attached to the LogMessage

    Properties

    Name Description
    ContextStartIndex

    Index of payload handle that is context buffer

    DecorationPairs

    Number of payload handles that are decoration pairs

    Methods

    Name Description
    Parse(in LogMessage, ref LogMemoryManager)

    Parses Header of the binary data

    TryGetContextPayload(int, out PayloadHandle)

    Try to get the PayloadHandle for the context payload by index

    TryGetDecorationPayload(int, ref LogMemoryManager, out NativeArray<byte>, out PayloadHandle)

    Try to get the PayloadHandle for the decoration payload by the pair index

    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)