Class TestLogBuffer

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.TestLogBuffer
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class TestLogBuffer extends ProxyInstance
  • Constructor Details

    • TestLogBuffer

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

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

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

      public TestLogBuffer(String data, SList<MemorySegment> msgs, Arena arena)
      Allocate a new TestLogBuffer with the fields set to the provided values.
      Parameters:
      data - value for the field data
      msgs - value for the field msgs
      arena - to control the memory allocation scope
    • TestLogBuffer

      public TestLogBuffer(String data, SList<MemorySegment> msgs)
      Allocate a new TestLogBuffer with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      data - value for the field data
      msgs - value for the field msgs
  • Method Details

    • getMemoryLayout

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

      public String readData()
      Read the value of the field data.
      Returns:
      The value of the field data
    • writeData

      public void writeData(String data)
      Write a value in the field data.
      Parameters:
      data - The new value for the field data
    • readMsgs

      public SList<MemorySegment> readMsgs()
      Read the value of the field msgs.
      Returns:
      The value of the field msgs
    • writeMsgs

      public void writeMsgs(SList<MemorySegment> msgs)
      Write a value in the field msgs.
      Parameters:
      msgs - The new value for the field msgs
    • new_

      public static TestLogBuffer new_()
      Internal function for gtester to decode test log messages, no ABI guarantees provided.
    • free

      public void free()
      Internal function for gtester to free test log messages, no ABI guarantees provided.
    • pop

      public TestLogMsg pop()
      Internal function for gtester to retrieve test log messages, no ABI guarantees provided.
    • push

      public void push(int nBytes, MemorySegment bytes)
      Internal function for gtester to decode test log messages, no ABI guarantees provided.