Package org.freedesktop.gstreamer.base
Class DataQueueItem
java.lang.Object
org.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
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.@Nullable DestroyNotifyRead the value of the fielddestroy.longRead the value of the fieldduration.Read the value of the fieldobject.intreadSize()Read the value of the fieldsize.booleanRead the value of the fieldvisible.voidwriteDestroy(@Nullable DestroyNotify destroy, Arena _arena) Write a value in the fielddestroy.voidwriteDuration(long duration) Write a value in the fieldduration.voidwriteObject(MiniObject object) Write a value in the fieldobject.voidwriteSize(int size) Write a value in the fieldsize.voidwriteVisible(boolean visible) Write a value in the fieldvisible.Methods inherited from class org.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 fieldobjectsize- value for the fieldsizeduration- value for the fielddurationvisible- value for the fieldvisibledestroy- value for the fielddestroyarena- 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 fieldobjectsize- value for the fieldsizeduration- value for the fielddurationvisible- value for the fieldvisibledestroy- 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
-