Interface AllocationMetaParamsAggregator
- 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 AllocationMetaParamsAggregator
extends FunctionPointer
Functional interface declaration of the AllocationMetaParamsAggregator callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThe aggregator function will combine the parameters fromparams0andparam1and write the result back intoaggregatedParams.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.default intupcall(MemorySegment aggregatedParams, MemorySegment params0, MemorySegment params1) Theupcallmethod is called from native code.
-
Method Details
-
run
The aggregator function will combine the parameters fromparams0andparam1and write the result back intoaggregatedParams.- Parameters:
aggregatedParams- This structure will be updated with the combined parameters from bothparams0andparams1.params0- aGstStructurecontaining the new parameters to be aggregated.params1- aGstStructurecontaining the new parameters to be aggregated.- Returns:
trueif the parameters were successfully aggregated,falseotherwise.- Since:
- 1.26
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(Structure[], Structure, Structure)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-