Interface STBIIORead
- 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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FunctionDescriptor
The function descriptor.static final MethodHandle
The method handle of the target method. -
Method Summary
Modifier and TypeMethodDescriptionint
invoke
(MemorySegment user, MemorySegment data, int size) The target method of the upcall.static int
invoke
(MemorySegment stub, MemorySegment user, MemorySegment data, int size) A static invoker of the target method.default MemorySegment
Creates an upcall stub associated with the given arena using Linker::upcallStubRESTRICTED.static STBIIORead
wrap
(MemorySegment stub) A wrapper for the target method.
-
Field Details
-
DESCRIPTOR
The function descriptor. -
HANDLE
The method handle of the target method.
-
-
Method Details
-
invoke
@CType("int") int invoke(@CType("void*") MemorySegment user, @CType("char *") MemorySegment data, @CType("int") int size) The target method of the upcall. -
stub
Description copied from interface:Upcall
Creates an upcall stub associated with the given arena using Linker::upcallStubRESTRICTED. -
invoke
@CType("int") static int invoke(MemorySegment stub, @CType("void*") MemorySegment user, @CType("char *") MemorySegment data, @CType("int") int size) A static invoker of the target method.- Parameters:
stub
- the upcall stub
-
wrap
A wrapper for the target method.- Parameters:
stub
- the upcall stub- Returns:
- an instance that wraps the static invoker
-