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 ofmem
that can be accessed according to the mode specified ininfo
's flags.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, long)
method.default MemorySegment
upcall
(MemorySegment mem, MemorySegment info, long maxsize) Theupcall
method is called from native code.
-
Method Details
-
run
Get the memory ofmem
that can be accessed according to the mode specified ininfo
's flags. The function should return a pointer that contains at leastmaxsize
bytes. -
upcall
Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-