Package org.gnome.glib
Class TestLogBuffer
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.glib.TestLogBuffer
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorDescriptionAllocate a new TestLogBuffer.TestLogBuffer
(Arena arena) Allocate a new TestLogBuffer.TestLogBuffer
(MemorySegment address) Create a TestLogBuffer proxy instance for the provided memory address.TestLogBuffer
(GString data) Allocate a new TestLogBuffer with the fields set to the provided values.TestLogBuffer
(GString data, Arena arena) Allocate a new TestLogBuffer with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
free()
Internal function for gtester to free test log messages, no ABI guarantees provided.static MemoryLayout
The memory layout of the native struct.static TestLogBuffer
new_()
Internal function for gtester to decode test log messages, no ABI guarantees provided.pop()
Internal function for gtester to retrieve test log messages, no ABI guarantees provided.void
push
(int nBytes, MemorySegment bytes) Internal function for gtester to decode test log messages, no ABI guarantees provided.readData()
Read the value of the fielddata
.void
Write a value in the fielddata
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TestLogBuffer
Create a TestLogBuffer proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
TestLogBuffer
Allocate a new TestLogBuffer.- Parameters:
arena
- to control the memory allocation scope
-
TestLogBuffer
public TestLogBuffer()Allocate a new TestLogBuffer. The memory is allocated withArena.ofAuto()
. -
TestLogBuffer
-
TestLogBuffer
Allocate a new TestLogBuffer with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
data
- value for the fielddata
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readData
-
writeData
Write a value in the fielddata
.- Parameters:
data
- The new value for the fielddata
-
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
Internal function for gtester to retrieve test log messages, no ABI guarantees provided. -
push
Internal function for gtester to decode test log messages, no ABI guarantees provided.
-