Package ch.bailu.gtk.glib
Class LogField
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.glib.LogField
- All Implemented Interfaces:
PointerInterface
Structure representing a single field in a structured log entry. See
g_log_structured() for details.
Log fields may contain arbitrary values, including binary with embedded nul
bytes. If the field contains a string, the string must be UTF-8 encoded and
have a trailing nul byte. Otherwise, @length must be set to a non-negative
value.
g_log_structured() for details.
Log fields may contain arbitrary values, including binary with embedded nul
bytes. If the field contains a string, the string must be UTF-8 encoded and
have a trailing nul byte. Otherwise, @length must be set to a non-negative
value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerfield name (UTF-8 string)longlength of @value, in bytes, or -1 if it is nul-terminatedfield value (arbitrary bytes)voidsetFieldKey(Str key) field name (UTF-8 string)voidsetFieldLength(long length) length of @value, in bytes, or -1 if it is nul-terminatedvoidsetFieldValue(Pointer value) field value (arbitrary bytes)Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
KEY
field name (UTF-8 string)- See Also:
-
VALUE
field value (arbitrary bytes)- See Also:
-
LENGTH
length of @value, in bytes, or -1 if it is nul-terminated- See Also:
-
-
Constructor Details
-
LogField
-
LogField
public LogField()
-
-
Method Details
-
getClassHandler
-
setFieldKey
field name (UTF-8 string) -
getFieldKey
field name (UTF-8 string) -
setFieldValue
field value (arbitrary bytes) -
getFieldValue
field value (arbitrary bytes) -
setFieldLength
public void setFieldLength(long length) length of @value, in bytes, or -1 if it is nul-terminated -
getFieldLength
public long getFieldLength()length of @value, in bytes, or -1 if it is nul-terminated
-