Struct HeaderData
Decodes payload for LogMessages
Inherited Members
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 |