Class DataQueueItem

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

@Generated("org.javagi.JavaGI") public class DataQueueItem extends ProxyInstance
Structure used by GstDataQueue. You can supply a different structure, as long as the top of the structure is identical to this structure.
  • Constructor Details

    • DataQueueItem

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

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

      public DataQueueItem()
      Allocate a new DataQueueItem. The memory is allocated with Arena.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 field object
      size - value for the field size
      duration - value for the field duration
      visible - value for the field visible
      destroy - value for the field destroy
      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 with Arena.ofAuto().
      Parameters:
      object - value for the field object
      size - value for the field size
      duration - value for the field duration
      visible - value for the field visible
      destroy - value for the field destroy
  • Method Details

    • getMemoryLayout

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

      public MiniObject readObject()
      Read the value of the field object.
      Returns:
      The value of the field object
    • writeObject

      public void writeObject(MiniObject object)
      Write a value in the field object.
      Parameters:
      object - The new value for the field object
    • readSize

      public int readSize()
      Read the value of the field size.
      Returns:
      The value of the field size
    • writeSize

      public void writeSize(int size)
      Write a value in the field size.
      Parameters:
      size - The new value for the field size
    • readDuration

      public long readDuration()
      Read the value of the field duration.
      Returns:
      The value of the field duration
    • writeDuration

      public void writeDuration(long duration)
      Write a value in the field duration.
      Parameters:
      duration - The new value for the field duration
    • readVisible

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

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

      public @Nullable DestroyNotify readDestroy()
      Read the value of the field destroy.
      Returns:
      The value of the field destroy
    • writeDestroy

      public void writeDestroy(@Nullable DestroyNotify destroy, Arena _arena)
      Write a value in the field destroy.
      Parameters:
      destroy - The new value for the field destroy
      _arena - to control the memory allocation scope