Package org.freedesktop.gstreamer.base
Class CollectData
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.base.CollectData
-
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The 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
.int
readPos()
Read the value of the fieldpos
.Read the value of the fieldsegment
.Read the value of the fieldstate
.void
writeBuffer
(Buffer buffer) Write a value in the fieldbuffer
.void
writeCollect
(CollectPads collect) Write a value in the fieldcollect
.void
Write a value in the fieldpad
.void
writePos
(int pos) Write a value in the fieldpos
.void
writeSegment
(Segment segment) Write a value in the fieldsegment
.void
writeState
(Set<CollectPadsStateFlags> state) Write a value in the fieldstate
.Methods inherited from class io.github.jwharm.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 fieldcollect
pad
- value for the fieldpad
buffer
- value for the fieldbuffer
pos
- value for the fieldpos
segment
- value for the fieldsegment
state
- value for the fieldstate
arena
- 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 fieldcollect
pad
- value for the fieldpad
buffer
- value for the fieldbuffer
pos
- value for the fieldpos
segment
- value for the fieldsegment
state
- 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
-