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

    Show / Hide Table of Contents

    Method BuildContextSpecialType

    BuildContextSpecialType(int, ref LogMemoryManager)

    Helper function to pack a special type of int

    Declaration
    public static PayloadHandle BuildContextSpecialType(int special_int, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    int special_int

    Integer to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(uint, ref LogMemoryManager)

    Helper function to pack a special type of uint

    Declaration
    public static PayloadHandle BuildContextSpecialType(uint special_uint, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    uint special_uint

    UInt to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(ulong, ref LogMemoryManager)

    Helper function to pack a special type of ulong

    Declaration
    public static PayloadHandle BuildContextSpecialType(ulong special_ulong, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    ulong special_ulong

    ULong to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(long, ref LogMemoryManager)

    Helper function to pack a special type of long

    Declaration
    public static PayloadHandle BuildContextSpecialType(long special_long, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    long special_long

    Long to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(char, ref LogMemoryManager)

    Helper function to pack a special type of char

    Declaration
    public static PayloadHandle BuildContextSpecialType(char special_char, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    char special_char

    Char to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(float, ref LogMemoryManager)

    Helper function to pack a special type of float

    Declaration
    public static PayloadHandle BuildContextSpecialType(float special_float, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    float special_float

    Float to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(double, ref LogMemoryManager)

    Helper function to pack a special type of double

    Declaration
    public static PayloadHandle BuildContextSpecialType(double special_double, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    double special_double

    Double to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(bool, ref LogMemoryManager)

    Helper function to pack a special type of bool

    Declaration
    public static PayloadHandle BuildContextSpecialType(bool special_bool, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    bool special_bool

    bool to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(decimal, ref LogMemoryManager)

    Helper function to pack a special type of decimal

    Declaration
    public static PayloadHandle BuildContextSpecialType(decimal special_decimal, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    decimal special_decimal

    Decimal to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(short, ref LogMemoryManager)

    Helper function to pack a special type of short

    Declaration
    public static PayloadHandle BuildContextSpecialType(short special_short, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    short special_short

    short to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(ushort, ref LogMemoryManager)

    Helper function to pack a special type of ushort

    Declaration
    public static PayloadHandle BuildContextSpecialType(ushort special_ushort, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    ushort special_ushort

    Ushort to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(sbyte, ref LogMemoryManager)

    Helper function to pack a special type of sbyte

    Declaration
    public static PayloadHandle BuildContextSpecialType(sbyte special_sbyte, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    sbyte special_sbyte

    sbyte to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(byte, ref LogMemoryManager)

    Helper function to pack a special type of byte

    Declaration
    public static PayloadHandle BuildContextSpecialType(byte special_byte, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    byte special_byte

    Byte to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(IntPtr, ref LogMemoryManager)

    Helper function to pack a special type of IntPtr

    Declaration
    public static PayloadHandle BuildContextSpecialType(IntPtr special_intptr, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    IntPtr special_intptr

    Byte to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(UIntPtr, ref LogMemoryManager)

    Helper function to pack a special type of UIntPtr

    Declaration
    public static PayloadHandle BuildContextSpecialType(UIntPtr special_uintptr, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    UIntPtr special_uintptr

    Byte to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(FixedString32Bytes, ref LogMemoryManager)

    Helper function to pack a FixedString

    Declaration
    public static PayloadHandle BuildContextSpecialType(FixedString32Bytes fixedString, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    FixedString32Bytes fixedString

    FixedString to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(FixedString64Bytes, ref LogMemoryManager)

    Helper function to pack a FixedString

    Declaration
    public static PayloadHandle BuildContextSpecialType(FixedString64Bytes fixedString, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    FixedString64Bytes fixedString

    FixedString to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(FixedString128Bytes, ref LogMemoryManager)

    Helper function to pack a FixedString

    Declaration
    public static PayloadHandle BuildContextSpecialType(FixedString128Bytes fixedString, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    FixedString128Bytes fixedString

    FixedString to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(FixedString512Bytes, ref LogMemoryManager)

    Helper function to pack a FixedString

    Declaration
    public static PayloadHandle BuildContextSpecialType(FixedString512Bytes fixedString, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    FixedString512Bytes fixedString

    FixedString to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(FixedString4096Bytes, ref LogMemoryManager)

    Helper function to pack a FixedString

    Declaration
    public static PayloadHandle BuildContextSpecialType(FixedString4096Bytes fixedString, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    FixedString4096Bytes fixedString

    FixedString to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(UnsafeText, ref LogMemoryManager)

    Helper function to pack an UnsafeText

    Declaration
    public static PayloadHandle BuildContextSpecialType(UnsafeText unsafeText, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    UnsafeText unsafeText

    UnsafeText to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(NativeText, ref LogMemoryManager)

    Helper function to pack a NativeText

    Declaration
    public static PayloadHandle BuildContextSpecialType(NativeText nativeText, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    NativeText nativeText

    NativeText to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(NativeTextBurstWrapper, ref LogMemoryManager)

    Helper function to pack a NativeTextWrapper

    Declaration
    public static PayloadHandle BuildContextSpecialType(NativeTextBurstWrapper nativeTextWrapper, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    NativeTextBurstWrapper nativeTextWrapper

    NativeTextBurstWrapper to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created data

    BuildContextSpecialType(PayloadHandle, ref LogMemoryManager)

    Helper function to pack a string saved in a PayloadBuffer

    Declaration
    public static PayloadHandle BuildContextSpecialType(PayloadHandle payloadHandle, ref LogMemoryManager memAllocator)
    Parameters
    Type Name Description
    PayloadHandle payloadHandle

    PayloadHandle to pack

    LogMemoryManager memAllocator

    Memory manager

    Returns
    Type Description
    PayloadHandle

    Handle for the created 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)