Interface StructureFilterMapFunc
- 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 StructureFilterMapFunc
extends FunctionPointer
Functional interface declaration of the StructureFilterMapFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanA function that will be called in gst_structure_filter_and_map_in_place().default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(int, MemorySegment, MemorySegment)method.default intupcall(int fieldId, MemorySegment value, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
A function that will be called in gst_structure_filter_and_map_in_place(). The function may modifyvalue,and the value will be removed from the structure iffalseis returned.- Parameters:
fieldId- theGQuarkof the field namevalue- theGValueof the field- Returns:
trueif the field should be preserved,falseif it should be removed.
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(Quark, Value)is executed. -
toCallback
Creates a native function pointer to theupcall(int, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-