Method BuildMessage
BuildMessage(string, ref LogMemoryManager)
Helper function to pack string into Log
Declaration
public static PayloadHandle BuildMessage(string message, ref LogMemoryManager memAllocator)
Parameters
Type | Name | Description |
---|---|---|
string | message | Input message |
Log |
memAllocator | Memory manager |
Returns
Type | Description |
---|---|
Payload |
Handle for the created data |
BuildMessage<T>(in T, ref LogMemoryManager)
Helper function to pack generic T into Log
Declaration
public static PayloadHandle BuildMessage<T>(in T message, ref LogMemoryManager memAllocator) where T : IUTF8Bytes, INativeList<byte>
Parameters
Type | Name | Description |
---|---|---|
T | message | Input message |
Log |
memAllocator | Memory manager |
Returns
Type | Description |
---|---|
Payload |
Handle for the created data |
Type Parameters
Name | Description |
---|---|
T | IUTF8Bytes, INativeList of byte |
BuildMessage(NativeTextBurstWrapper, ref LogMemoryManager)
Writes UTF8 string into Log
Declaration
public static PayloadHandle BuildMessage(NativeTextBurstWrapper msg, ref LogMemoryManager memAllocator)
Parameters
Type | Name | Description |
---|---|---|
Native |
msg | Native |
Log |
memAllocator | Memory allocator that should allocate the Payload |
Returns
Type | Description |
---|---|
Payload |
Payload |
BuildMessage(IntPtr, int, ref LogMemoryManager)
Writes UTF8 string into Log
Declaration
public static PayloadHandle BuildMessage(IntPtr utf8Ptr, int utf8Length, ref LogMemoryManager memAllocator)
Parameters
Type | Name | Description |
---|---|---|
Int |
utf8Ptr | IntPtr pointer to UTF8 string data |
int | utf8Length | Length of UTF8 string data |
Log |
memAllocator | Memory allocator that should allocate the Payload |
Returns
Type | Description |
---|---|
Payload |
Payload |
BuildMessage(byte*, int, ref LogMemoryManager)
Writes UTF8 string into Log
Declaration
public static PayloadHandle BuildMessage(byte* utf8Ptr, int utf8Length, ref LogMemoryManager memAllocator)
Parameters
Type | Name | Description |
---|---|---|
byte* | utf8Ptr | Pointer to UTF8 string data |
int | utf8Length | Length of UTF8 string data |
Log |
memAllocator | Memory allocator that should allocate the Payload |
Returns
Type | Description |
---|---|
Payload |
Payload |