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 Summary
Modifier and TypeMethodDescriptionbooleanrun(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.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, int, int, long, MemorySegment)method.default intupcall(MemorySegment queue, int visible, int bytes, long time, MemorySegment checkdata) Theupcallmethod is called from native code.
-
Method Details
-
run
The prototype of the function used to inform the queue that it should be considered as full.- Parameters:
queue- aGstDataQueue.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- Thegpointerregistered when theGstDataQueuewas created.- Returns:
trueif the queue should be considered full.
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(DataQueue, int, int, long, MemorySegment)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, int, int, long, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-