LogField
Allocate a new LogField.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Allocate a new LogField using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
The AutofreeScope to allocate this structure in.
Allocate a new LogField.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Parameters
field name (UTF-8 string)
field value (arbitrary bytes)
length of @value, in bytes, or -1 if it is nul-terminated
Allocate a new LogField using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
field name (UTF-8 string)
field value (arbitrary bytes)
length of @value, in bytes, or -1 if it is nul-terminated
The AutofreeScope to allocate this structure in.