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(String data, SList<MemorySegment> msgs) Allocate a new TestLogBuffer with the fields set to the provided values.TestLogBuffer(String data, 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.readData()Read the value of the fielddata.readMsgs()Read the value of the fieldmsgs.voidWrite a value in the fielddata.voidwriteMsgs(SList<MemorySegment> msgs) Write a value in the fieldmsgs.Methods inherited from class 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:
data- value for the fielddatamsgs- 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:
data- value for the fielddatamsgs- value for the fieldmsgs
-
-
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
-
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.
-