Package org.freedesktop.gstreamer.base
Class DataQueueSize
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.base.DataQueueSize
-
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.int
Read the value of the fieldbytes
.long
readTime()
Read the value of the fieldtime
.int
Read the value of the fieldvisible
.void
writeBytes
(int bytes) Write a value in the fieldbytes
.void
writeTime
(long time) Write a value in the fieldtime
.void
writeVisible
(int visible) Write a value in the fieldvisible
.Methods inherited from class io.github.jwharm.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 fieldvisible
bytes
- value for the fieldbytes
time
- value for the fieldtime
arena
- 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 fieldvisible
bytes
- value for the fieldbytes
time
- 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
-