Class PollFD

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

@Generated("org.javagi.JavaGI") public class PollFD extends ProxyInstance
A file descriptor object.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Allocate a new PollFD.
    PollFD(int fd, int idx)
    Allocate a new PollFD with the fields set to the provided values.
    PollFD(int fd, int idx, Arena arena)
    Allocate a new PollFD with the fields set to the provided values.
    PollFD(Arena arena)
    Allocate a new PollFD.
    Create a PollFD proxy instance for the provided memory address.
  • Method Summary

    Modifier and Type
    Method
    Description
    The memory layout of the native struct.
    void
    Initializes fd. Alternatively you can initialize it with GST_POLL_FD_INIT.
    int
    Read the value of the field fd.
    int
    Read the value of the field idx.
    void
    writeFd(int fd)
    Write a value in the field fd.
    void
    writeIdx(int idx)
    Write a value in the field idx.

    Methods inherited from class ProxyInstance

    equals, handle, hashCode

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PollFD

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

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

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

      public PollFD(int fd, int idx, Arena arena)
      Allocate a new PollFD with the fields set to the provided values.
      Parameters:
      fd - value for the field fd
      idx - value for the field idx
      arena - to control the memory allocation scope
    • PollFD

      public PollFD(int fd, int idx)
      Allocate a new PollFD with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      fd - value for the field fd
      idx - value for the field idx
  • Method Details

    • getMemoryLayout

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

      public int readFd()
      Read the value of the field fd.
      Returns:
      The value of the field fd
    • writeFd

      public void writeFd(int fd)
      Write a value in the field fd.
      Parameters:
      fd - The new value for the field fd
    • readIdx

      public int readIdx()
      Read the value of the field idx.
      Returns:
      The value of the field idx
    • writeIdx

      public void writeIdx(int idx)
      Write a value in the field idx.
      Parameters:
      idx - The new value for the field idx
    • init

      public void init()
      Initializes fd. Alternatively you can initialize it with GST_POLL_FD_INIT.