LogField

constructor()

Allocate a new LogField.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)

Allocate a new LogField using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(key: String?, value: <Error class: unknown class>, length: Long)

Allocate a new LogField.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

key

field name (UTF-8 string)

value

field value (arbitrary bytes)

length

length of @value, in bytes, or -1 if it is nul-terminated


constructor(key: String?, value: <Error class: unknown class>, length: Long, scope: <Error class: unknown class>)

Allocate a new LogField using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

key

field name (UTF-8 string)

value

field value (arbitrary bytes)

length

length of @value, in bytes, or -1 if it is nul-terminated

scope

The AutofreeScope to allocate this structure in.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)