Class CollectData

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

@Generated("org.javagi.JavaGI") public class CollectData extends ProxyInstance
Structure used by the collect_pads.
  • Constructor Details

    • CollectData

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

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

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

      public CollectData(CollectPads collect, Pad pad, Buffer buffer, int pos, Segment segment, Set<CollectPadsStateFlags> state, Arena arena)
      Allocate a new CollectData with the fields set to the provided values.
      Parameters:
      collect - value for the field collect
      pad - value for the field pad
      buffer - value for the field buffer
      pos - value for the field pos
      segment - value for the field segment
      state - value for the field state
      arena - to control the memory allocation scope
    • CollectData

      public CollectData(CollectPads collect, Pad pad, Buffer buffer, int pos, Segment segment, Set<CollectPadsStateFlags> state)
      Allocate a new CollectData with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      collect - value for the field collect
      pad - value for the field pad
      buffer - value for the field buffer
      pos - value for the field pos
      segment - value for the field segment
      state - value for the field state
  • Method Details

    • getMemoryLayout

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

      public CollectPads readCollect()
      Read the value of the field collect.
      Returns:
      The value of the field collect
    • writeCollect

      public void writeCollect(CollectPads collect)
      Write a value in the field collect.
      Parameters:
      collect - The new value for the field collect
    • readPad

      public Pad readPad()
      Read the value of the field pad.
      Returns:
      The value of the field pad
    • writePad

      public void writePad(Pad pad)
      Write a value in the field pad.
      Parameters:
      pad - The new value for the field pad
    • readBuffer

      public Buffer readBuffer()
      Read the value of the field buffer.
      Returns:
      The value of the field buffer
    • writeBuffer

      public void writeBuffer(Buffer buffer)
      Write a value in the field buffer.
      Parameters:
      buffer - The new value for the field buffer
    • readPos

      public int readPos()
      Read the value of the field pos.
      Returns:
      The value of the field pos
    • writePos

      public void writePos(int pos)
      Write a value in the field pos.
      Parameters:
      pos - The new value for the field pos
    • readSegment

      public @Nullable Segment readSegment()
      Read the value of the field segment.
      Returns:
      The value of the field segment
    • writeSegment

      public void writeSegment(@Nullable Segment segment)
      Write a value in the field segment.
      Parameters:
      segment - The new value for the field segment
    • readState

      public Set<CollectPadsStateFlags> readState()
      Read the value of the field state.
      Returns:
      The value of the field state
    • writeState

      public void writeState(Set<CollectPadsStateFlags> state)
      Write a value in the field state.
      Parameters:
      state - The new value for the field state