Package org.freedesktop.gstreamer.base
Class DataQueueItem
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.base.DataQueueItem
- All Implemented Interfaces:
Proxy
Structure used by
GstDataQueue
. You can supply a different structure, as
long as the top of the structure is identical to this structure.-
Constructor Summary
ConstructorDescriptionAllocate a new DataQueueItem.DataQueueItem
(Arena arena) Allocate a new DataQueueItem.DataQueueItem
(MemorySegment address) Create a DataQueueItem proxy instance for the provided memory address.DataQueueItem
(MiniObject object, int size, long duration, boolean visible, DestroyNotify destroy) Allocate a new DataQueueItem with the fields set to the provided values.DataQueueItem
(MiniObject object, int size, long duration, boolean visible, DestroyNotify destroy, Arena arena) Allocate a new DataQueueItem 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 fielddestroy
.long
Read the value of the fieldduration
.Read the value of the fieldobject
.int
readSize()
Read the value of the fieldsize
.boolean
Read the value of the fieldvisible
.void
writeDestroy
(DestroyNotify destroy, Arena _arena) Write a value in the fielddestroy
.void
writeDuration
(long duration) Write a value in the fieldduration
.void
writeObject
(MiniObject object) Write a value in the fieldobject
.void
writeSize
(int size) Write a value in the fieldsize
.void
writeVisible
(boolean visible) Write a value in the fieldvisible
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DataQueueItem
Create a DataQueueItem proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
DataQueueItem
Allocate a new DataQueueItem.- Parameters:
arena
- to control the memory allocation scope
-
DataQueueItem
public DataQueueItem()Allocate a new DataQueueItem. The memory is allocated withArena.ofAuto()
. -
DataQueueItem
public DataQueueItem(MiniObject object, int size, long duration, boolean visible, DestroyNotify destroy, Arena arena) Allocate a new DataQueueItem with the fields set to the provided values.- Parameters:
object
- value for the fieldobject
size
- value for the fieldsize
duration
- value for the fieldduration
visible
- value for the fieldvisible
destroy
- value for the fielddestroy
arena
- to control the memory allocation scope
-
DataQueueItem
public DataQueueItem(MiniObject object, int size, long duration, boolean visible, DestroyNotify destroy) Allocate a new DataQueueItem with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
object
- value for the fieldobject
size
- value for the fieldsize
duration
- value for the fieldduration
visible
- value for the fieldvisible
destroy
- value for the fielddestroy
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readObject
Read the value of the fieldobject
.- Returns:
- The value of the field
object
-
writeObject
Write a value in the fieldobject
.- Parameters:
object
- The new value for the fieldobject
-
readSize
public int readSize()Read the value of the fieldsize
.- Returns:
- The value of the field
size
-
writeSize
public void writeSize(int size) Write a value in the fieldsize
.- Parameters:
size
- The new value for the fieldsize
-
readDuration
public long readDuration()Read the value of the fieldduration
.- Returns:
- The value of the field
duration
-
writeDuration
public void writeDuration(long duration) Write a value in the fieldduration
.- Parameters:
duration
- The new value for the fieldduration
-
readVisible
public boolean readVisible()Read the value of the fieldvisible
.- Returns:
- The value of the field
visible
-
writeVisible
public void writeVisible(boolean visible) Write a value in the fieldvisible
.- Parameters:
visible
- The new value for the fieldvisible
-
readDestroy
Read the value of the fielddestroy
.- Returns:
- The value of the field
destroy
-
writeDestroy
Write a value in the fielddestroy
.- Parameters:
destroy
- The new value for the fielddestroy
_arena
- to control the memory allocation scope
-