Package org.freedesktop.gstreamer.base
Class DataQueueSize
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.base.DataQueueSize
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new DataQueueSize.DataQueueSize(int visible, int bytes, long time) Allocate a new DataQueueSize with the fields set to the provided values.DataQueueSize(int visible, int bytes, long time, Arena arena) Allocate a new DataQueueSize with the fields set to the provided values.DataQueueSize(Arena arena) Allocate a new DataQueueSize.DataQueueSize(MemorySegment address) Create a DataQueueSize proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.intRead the value of the fieldbytes.longreadTime()Read the value of the fieldtime.intRead the value of the fieldvisible.voidwriteBytes(int bytes) Write a value in the fieldbytes.voidwriteTime(long time) Write a value in the fieldtime.voidwriteVisible(int visible) Write a value in the fieldvisible.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DataQueueSize
Create a DataQueueSize proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
DataQueueSize
Allocate a new DataQueueSize.- Parameters:
arena- to control the memory allocation scope
-
DataQueueSize
public DataQueueSize()Allocate a new DataQueueSize. The memory is allocated withArena.ofAuto(). -
DataQueueSize
Allocate a new DataQueueSize with the fields set to the provided values.- Parameters:
visible- value for the fieldvisiblebytes- value for the fieldbytestime- value for the fieldtimearena- to control the memory allocation scope
-
DataQueueSize
public DataQueueSize(int visible, int bytes, long time) Allocate a new DataQueueSize with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
visible- value for the fieldvisiblebytes- value for the fieldbytestime- value for the fieldtime
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readVisible
public int readVisible()Read the value of the fieldvisible.- Returns:
- The value of the field
visible
-
writeVisible
public void writeVisible(int visible) Write a value in the fieldvisible.- Parameters:
visible- The new value for the fieldvisible
-
readBytes
public int readBytes()Read the value of the fieldbytes.- Returns:
- The value of the field
bytes
-
writeBytes
public void writeBytes(int bytes) Write a value in the fieldbytes.- Parameters:
bytes- The new value for the fieldbytes
-
readTime
public long readTime()Read the value of the fieldtime.- Returns:
- The value of the field
time
-
writeTime
public void writeTime(long time) Write a value in the fieldtime.- Parameters:
time- The new value for the fieldtime
-