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

    Show / Hide Table of Contents

    Struct BinaryParser

    Ref struct to hide unsafe pointer logic

    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
    public readonly ref struct BinaryParser

    Constructors

    Name Description
    BinaryParser(void*, int)

    Creates the ref struct

    Fields

    Name Description
    LengthInBytes

    Length of the data in bytes

    Properties

    Name Description
    IsValid

    True if Pointer is not null and length is bigger than 0

    Pointer

    Safe IntPtr wrapper for the internal pointer

    Methods

    Name Description
    AppendToUnsafeText<T>(ref UnsafeText, ref FormatterStruct, ref LogMemoryManager, ref ArgumentInfo)

    Reads the pointer as T that implements ILoggableMirrorStruct, and appends it to the UnsafeText. Checks out of bound read if debug checks are present

    AppendUTF8StringToUnsafeText(ref UnsafeText, ref FormatterStruct, int, ref ArgumentInfo)

    Reads the pointer as a UTF8 string and appends it to the UnsafeText. Checks out of bound read if debug checks are present

    Peek<T>()

    Reads the pointer as T. Checks out of bound read if debug checks are present

    Skip(int)

    Creates new BinaryParser that is a slice of the current one, but 'bytes' are skipped

    Skip<T>()

    Creates new BinaryParser that is a slice of the current one, but SizeOf{T} are skipped

    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)