Interface STBIRInputCallback
- All Superinterfaces:
Upcall
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
typedef void const * (*STBIRInputCallback)(void* optional_output, void const * input_ptr, int num_pixels, int x, int y, void* context);
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FunctionDescriptor
The function descriptor.static final MethodHandle
The method handle of the target method. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
alloc
(Arena arena, STBIRInputCallback func) AllocatesSTBIRInputCallback
.invoke
(MemorySegment optional_output, MemorySegment input_ptr, int num_pixels, int x, int y, MemorySegment context) The target method of the upcall.default MemorySegment
invoke_
(MemorySegment optional_output, MemorySegment input_ptr, int num_pixels, int x, int y, MemorySegment context) The target method of the upcall.default MemorySegment
Creates an upcall stub associated with the given arena using Linker::upcallStubRESTRICTED.
-
Field Details
-
DESCRIPTOR
The function descriptor. -
HANDLE
The method handle of the target method.
-
-
Method Details
-
alloc
AllocatesSTBIRInputCallback
.- Parameters:
arena
- the arenafunc
- the function- Returns:
- the upcall stub
-
invoke
MemorySegment invoke(MemorySegment optional_output, MemorySegment input_ptr, int num_pixels, int x, int y, MemorySegment context) The target method of the upcall. -
invoke_
default MemorySegment invoke_(MemorySegment optional_output, MemorySegment input_ptr, int num_pixels, int x, int y, MemorySegment context) The target method of the upcall. -
stub
Description copied from interface:Upcall
Creates an upcall stub associated with the given arena using Linker::upcallStubRESTRICTED.
-