Package org.freedesktop.gstreamer.gst
Interface MemoryMapFullFunction
- 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("io.github.jwharm.JavaGI")
public interface MemoryMapFullFunction
extends FunctionPointer
Functional interface declaration of the
MemoryMapFullFunction callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the memory ofmemthat can be accessed according to the mode specified ininfo'sflags.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, long)method.default MemorySegmentupcall(MemorySegment mem, MemorySegment info, long maxsize) Theupcallmethod is called from native code.
-
Method Details
-
run
Get the memory ofmemthat can be accessed according to the mode specified ininfo'sflags. The function should return a pointer that contains at leastmaxsizebytes. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(org.freedesktop.gstreamer.gst.Memory, org.freedesktop.gstreamer.gst.MapInfo, long)is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, long)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-