docs.unity3d.com
    Show / Hide Table of Contents

    Struct LogContextWithDecorator

    Struct that is used to wrap FixedList of PayloadHandles and LogControllerScopedLock.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Logging.Internal
    Syntax
    public struct LogContextWithDecorator
    Remarks
    LogControllerScopedLock can be not valid (default) - that means FixedList of PayloadHandle is global, not connected to any LogController LogDecorateScope

    Fields

    CurrentMode

    LogContextWithDecorator.Mode of this LogContextWithDecorator
    Declaration
    public LogContextWithDecorator.Mode CurrentMode
    Field Value
    Type Description
    LogContextWithDecorator.Mode

    Lock

    Lock that was used for this LogController. Can be not valid (default) - that means FixedList of PayloadHandle is global, not connected to any LogController

    Declaration
    public LogControllerScopedLock Lock
    Field Value
    Type Description
    LogControllerScopedLock

    Properties

    Length

    Returns current Length of PayloadHandles list

    Declaration
    public readonly ushort Length { get; }
    Property Value
    Type Description
    UInt16

    Methods

    Add(PayloadHandle)

    Appends an element to the end of this list. Increments the length by 1.

    Declaration
    public void Add(PayloadHandle handle)
    Parameters
    Type Name Description
    PayloadHandle handle

    The element to append at the end of the list.

    ElementAt(Int32)

    Returns the element at a given index.

    Declaration
    public ref PayloadHandle ElementAt(int i)
    Parameters
    Type Name Description
    Int32 i

    An index.

    Returns
    Type Description
    PayloadHandle

    The list element at the index.

    From4096(FixedList4096Bytes<PayloadHandle>*, LogControllerScopedLock)

    Creates List with 4096 bytes

    Declaration
    public static LogContextWithDecorator From4096(FixedList4096Bytes<PayloadHandle>*addressOfFixedList, LogControllerScopedLock lockController = default(LogControllerScopedLock))
    Parameters
    Type Name Description
    FixedList4096Bytes<PayloadHandle>* addressOfFixedList

    PayloadHandle's list

    LogControllerScopedLock lockController

    LogController's lock or default(LogControllerScopedLock) if global

    Returns
    Type Description
    LogContextWithDecorator

    LogContextWithDecorator struct

    From512(FixedList512Bytes<PayloadHandle>*, LogControllerScopedLock)

    Creates List with 512 bytes

    Declaration
    public static LogContextWithDecorator From512(FixedList512Bytes<PayloadHandle>*addressOfFixedList, LogControllerScopedLock lockController = default(LogControllerScopedLock))
    Parameters
    Type Name Description
    FixedList512Bytes<PayloadHandle>* addressOfFixedList

    PayloadHandle's list

    LogControllerScopedLock lockController

    LogController lock or default if global

    Returns
    Type Description
    LogContextWithDecorator

    LogContextWithDecorator struct

    GetMemoryManagerNotThreadSafe(ref LogContextWithDecorator)

    Returns the LogMemoryManager of LogContextWithDecorator

    Declaration
    public static ref LogMemoryManager GetMemoryManagerNotThreadSafe(ref LogContextWithDecorator dec)
    Parameters
    Type Name Description
    LogContextWithDecorator dec

    Context

    Returns
    Type Description
    LogMemoryManager

    Memory manager

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023