Interface DataQueueCheckFullFunction

All Superinterfaces:
FunctionPointer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Generated("org.javagi.JavaGI") public interface DataQueueCheckFullFunction extends FunctionPointer

Functional interface declaration of the DataQueueCheckFullFunction callback.

See Also:
  • Method Details

    • run

      boolean run(DataQueue queue, int visible, int bytes, long time, @Nullable MemorySegment checkdata)
      The prototype of the function used to inform the queue that it should be considered as full.
      Parameters:
      queue - a GstDataQueue.
      visible - The number of visible items currently in the queue.
      bytes - The amount of bytes currently in the queue.
      time - The accumulated duration of the items currently in the queue.
      checkdata - The gpointer registered when the GstDataQueue was created.
      Returns:
      true if the queue should be considered full.
    • upcall

      default int upcall(MemorySegment queue, int visible, int bytes, long time, MemorySegment checkdata)
      The upcall method is called from native code. The parameters are marshaled and run(DataQueue, int, int, long, MemorySegment) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, int, int, long, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer