Package org.gnome.glib
Class DebugKey
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.DebugKey
- All Implemented Interfaces:
Proxy
Associates a string with a bit flag.
Used in g_parse_debug_string().
-
Constructor Summary
ConstructorsConstructorDescriptionDebugKey()Allocate a new DebugKey.Allocate a new DebugKey.DebugKey(MemorySegment address) Create a DebugKey proxy instance for the provided memory address.Allocate a new DebugKey with the fields set to the provided values.Allocate a new DebugKey with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.readKey()Read the value of the fieldkey.intRead the value of the fieldvalue.voidWrite a value in the fieldkey.voidwriteValue(int value) Write a value in the fieldvalue.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DebugKey
Create a DebugKey proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
DebugKey
Allocate a new DebugKey.- Parameters:
arena- to control the memory allocation scope
-
DebugKey
public DebugKey()Allocate a new DebugKey. The memory is allocated withArena.ofAuto(). -
DebugKey
-
DebugKey
Allocate a new DebugKey with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
key- value for the fieldkeyvalue- value for the fieldvalue
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readKey
-
writeKey
-
readValue
public int readValue()Read the value of the fieldvalue.- Returns:
- The value of the field
value
-
writeValue
public void writeValue(int value) Write a value in the fieldvalue.- Parameters:
value- The new value for the fieldvalue
-