Struct LogContextWithDecorator
Struct that is used to wrap FixedList of PayloadHandles and LogControllerScopedLock.
Namespace: Unity.Logging.Internal
Syntax
public struct LogContextWithDecorator
Remarks
Fields
CurrentMode
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 |