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("org.javagi.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(MemorySegment, 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.- Parameters:
mem- aGstMemoryinfo- theGstMapInfoto map withmaxsize- size to map- Returns:
- a pointer to memory of which at least
maxsizebytes can be accessed according to the access pattern ininfo'sflags.
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(Memory, MapInfo, long)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, long)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-