Class DataQueueSize

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.base.DataQueueSize
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class DataQueueSize extends ProxyInstance
Structure describing the size of a queue.
  • Constructor Details

    • DataQueueSize

      public DataQueueSize(MemorySegment address)
      Create a DataQueueSize proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • DataQueueSize

      public DataQueueSize(Arena arena)
      Allocate a new DataQueueSize.
      Parameters:
      arena - to control the memory allocation scope
    • DataQueueSize

      public DataQueueSize()
      Allocate a new DataQueueSize. The memory is allocated with Arena.ofAuto().
    • DataQueueSize

      public DataQueueSize(int visible, int bytes, long time, Arena arena)
      Allocate a new DataQueueSize with the fields set to the provided values.
      Parameters:
      visible - value for the field visible
      bytes - value for the field bytes
      time - value for the field time
      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 with Arena.ofAuto().
      Parameters:
      visible - value for the field visible
      bytes - value for the field bytes
      time - value for the field time
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readVisible

      public int readVisible()
      Read the value of the field visible.
      Returns:
      The value of the field visible
    • writeVisible

      public void writeVisible(int visible)
      Write a value in the field visible.
      Parameters:
      visible - The new value for the field visible
    • readBytes

      public int readBytes()
      Read the value of the field bytes.
      Returns:
      The value of the field bytes
    • writeBytes

      public void writeBytes(int bytes)
      Write a value in the field bytes.
      Parameters:
      bytes - The new value for the field bytes
    • readTime

      public long readTime()
      Read the value of the field time.
      Returns:
      The value of the field time
    • writeTime

      public void writeTime(long time)
      Write a value in the field time.
      Parameters:
      time - The new value for the field time