Package org.gnome.glib
Class TestLogBuffer
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.TestLogBuffer
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new TestLogBuffer.TestLogBuffer(Arena arena) Allocate a new TestLogBuffer.TestLogBuffer(MemorySegment address) Create a TestLogBuffer proxy instance for the provided memory address.TestLogBuffer(SList<MemorySegment> msgs) Allocate a new TestLogBuffer with the fields set to the provided values.TestLogBuffer(SList<MemorySegment> msgs, Arena arena) Allocate a new TestLogBuffer with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()Internal function for gtester to free test log messages, no ABI guarantees provided.static MemoryLayoutThe memory layout of the native struct.static TestLogBuffernew_()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.voidpush(int nBytes, MemorySegment bytes) Internal function for gtester to decode test log messages, no ABI guarantees provided.readMsgs()Read the value of the fieldmsgs.voidwriteMsgs(SList<MemorySegment> msgs) Write a value in the fieldmsgs.Methods inherited from class org.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
Allocate a new TestLogBuffer with the fields set to the provided values.- Parameters:
msgs- value for the fieldmsgsarena- to control the memory allocation scope
-
TestLogBuffer
Allocate a new TestLogBuffer with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
msgs- value for the fieldmsgs
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMsgs
Read the value of the fieldmsgs.- Returns:
- The value of the field
msgs
-
writeMsgs
Write a value in the fieldmsgs.- Parameters:
msgs- The new value for the fieldmsgs
-
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.
-