Class DebugKey

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class DebugKey extends ProxyInstance
Associates a string with a bit flag. Used in g_parse_debug_string().
  • Constructor Details

    • DebugKey

      public DebugKey(MemorySegment address)
      Create a DebugKey proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • DebugKey

      public DebugKey(Arena arena)
      Allocate a new DebugKey.
      Parameters:
      arena - to control the memory allocation scope
    • DebugKey

      public DebugKey()
      Allocate a new DebugKey. The memory is allocated with Arena.ofAuto().
    • DebugKey

      public DebugKey(String key, int value, Arena arena)
      Allocate a new DebugKey with the fields set to the provided values.
      Parameters:
      key - value for the field key
      value - value for the field value
      arena - to control the memory allocation scope
    • DebugKey

      public DebugKey(String key, int value)
      Allocate a new DebugKey with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      key - value for the field key
      value - value for the field value
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readKey

      public String readKey()
      Read the value of the field key.
      Returns:
      The value of the field key
    • writeKey

      public void writeKey(String key, Arena _arena)
      Write a value in the field key.
      Parameters:
      key - The new value for the field key
      _arena - to control the memory allocation scope
    • readValue

      public int readValue()
      Read the value of the field value.
      Returns:
      The value of the field value
    • writeValue

      public void writeValue(int value)
      Write a value in the field value.
      Parameters:
      value - The new value for the field value