Delegate TextLoggerParser.OutputWriterHandler
Defines a delegate to handle writing the field data for context data structs.
Namespace: Unity.Logging
Syntax
public delegate TextLoggerParser.ContextWriteResult OutputWriterHandler(ref UnsafeText outputUnsafeText, byte *dataBuffer, int bufferLength);
Parameters
Type | Name | Description |
---|---|---|
UnsafeText | outputUnsafeText | Reference to a UnsafeListString object to which the delegate writes the struct's data. |
Byte* | dataBuffer | Pointer to the byte buffer holding the current generated struct data. |
Int32 | bufferLength | Length of the dataBuffer |
Returns
Type | Description |
---|---|
TextLoggerParser.ContextWriteResult | Value indicating delegate successfully handled the data or not. |
Remarks
The TextLoggerParser calls into these delegates in order to write the struct data to the output string.
Delegates can be added or removed from the active list of handlers by calling
NOTE: Burst FunctionPointers only support delegates with primitive parameter types; structs cannot be passed, even by reference.