Package org.freedesktop.gstreamer.base
Class CollectData
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.base.CollectData
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new CollectData.CollectData(Arena arena) Allocate a new CollectData.CollectData(MemorySegment address) Create a CollectData proxy instance for the provided memory address.CollectData(CollectPads collect, Pad pad, Buffer buffer, int pos, Segment segment, Set<CollectPadsStateFlags> state) Allocate a new CollectData with the fields set to the provided values.CollectData(CollectPads collect, Pad pad, Buffer buffer, int pos, Segment segment, Set<CollectPadsStateFlags> state, Arena arena) Allocate a new CollectData with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.Read the value of the fieldbuffer.Read the value of the fieldcollect.readPad()Read the value of the fieldpad.intreadPos()Read the value of the fieldpos.@Nullable SegmentRead the value of the fieldsegment.Read the value of the fieldstate.voidwriteBuffer(Buffer buffer) Write a value in the fieldbuffer.voidwriteCollect(CollectPads collect) Write a value in the fieldcollect.voidWrite a value in the fieldpad.voidwritePos(int pos) Write a value in the fieldpos.voidwriteSegment(@Nullable Segment segment) Write a value in the fieldsegment.voidwriteState(Set<CollectPadsStateFlags> state) Write a value in the fieldstate.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
CollectData
Create a CollectData proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
CollectData
Allocate a new CollectData.- Parameters:
arena- to control the memory allocation scope
-
CollectData
public CollectData()Allocate a new CollectData. The memory is allocated withArena.ofAuto(). -
CollectData
public CollectData(CollectPads collect, Pad pad, Buffer buffer, int pos, Segment segment, Set<CollectPadsStateFlags> state, Arena arena) Allocate a new CollectData with the fields set to the provided values.- Parameters:
collect- value for the fieldcollectpad- value for the fieldpadbuffer- value for the fieldbufferpos- value for the fieldpossegment- value for the fieldsegmentstate- value for the fieldstatearena- to control the memory allocation scope
-
CollectData
public CollectData(CollectPads collect, Pad pad, Buffer buffer, int pos, Segment segment, Set<CollectPadsStateFlags> state) Allocate a new CollectData with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
collect- value for the fieldcollectpad- value for the fieldpadbuffer- value for the fieldbufferpos- value for the fieldpossegment- value for the fieldsegmentstate- value for the fieldstate
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readCollect
Read the value of the fieldcollect.- Returns:
- The value of the field
collect
-
writeCollect
Write a value in the fieldcollect.- Parameters:
collect- The new value for the fieldcollect
-
readPad
-
writePad
Write a value in the fieldpad.- Parameters:
pad- The new value for the fieldpad
-
readBuffer
Read the value of the fieldbuffer.- Returns:
- The value of the field
buffer
-
writeBuffer
Write a value in the fieldbuffer.- Parameters:
buffer- The new value for the fieldbuffer
-
readPos
public int readPos()Read the value of the fieldpos.- Returns:
- The value of the field
pos
-
writePos
public void writePos(int pos) Write a value in the fieldpos.- Parameters:
pos- The new value for the fieldpos
-
readSegment
Read the value of the fieldsegment.- Returns:
- The value of the field
segment
-
writeSegment
Write a value in the fieldsegment.- Parameters:
segment- The new value for the fieldsegment
-
readState
Read the value of the fieldstate.- Returns:
- The value of the field
state
-
writeState
Write a value in the fieldstate.- Parameters:
state- The new value for the fieldstate
-