Class BufferMethodGenerator
java.lang.Object
jnr.ffi.provider.jffi.BaseMethodGenerator
jnr.ffi.provider.jffi.BufferMethodGenerator
- All Implemented Interfaces:
MethodGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Map<NativeType, BufferMethodGenerator.InvokeOp> (package private) static final Map<NativeType, BufferMethodGenerator.MarshalOp> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidemitPrimitiveOp(SkinnyMethodAdapter mv, ParameterType parameterType, ToNativeOp op) (package private) voidgenerate(AsmBuilder builder, SkinnyMethodAdapter mv, LocalVariableAllocator localVariableAllocator, com.kenai.jffi.CallContext callContext, ResultType resultType, ParameterType[] parameterTypes, boolean ignoreError) (package private) voidgenerateBufferInvocation(AsmBuilder builder, SkinnyMethodAdapter mv, LocalVariableAllocator localVariableAllocator, com.kenai.jffi.CallContext callContext, ResultType resultType, ParameterType[] parameterTypes) (package private) static booleanisSessionRequired(ParameterType parameterType) (package private) static booleanisSessionRequired(ParameterType[] parameterTypes) booleanisSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention) Methods inherited from class BaseMethodGenerator
emitEpilogue, emitPostInvoke, generate, isPostInvokeRequired, loadAndConvertParameter
-
Field Details
-
marshalOps
-
invokeOps
-
-
Constructor Details
-
BufferMethodGenerator
BufferMethodGenerator()
-
-
Method Details
-
generate
void generate(AsmBuilder builder, SkinnyMethodAdapter mv, LocalVariableAllocator localVariableAllocator, com.kenai.jffi.CallContext callContext, ResultType resultType, ParameterType[] parameterTypes, boolean ignoreError) - Specified by:
generatein classBaseMethodGenerator
-
isSupported
public boolean isSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention) -
emitPrimitiveOp
private static void emitPrimitiveOp(SkinnyMethodAdapter mv, ParameterType parameterType, ToNativeOp op) -
isSessionRequired
-
isSessionRequired
-
generateBufferInvocation
void generateBufferInvocation(AsmBuilder builder, SkinnyMethodAdapter mv, LocalVariableAllocator localVariableAllocator, com.kenai.jffi.CallContext callContext, ResultType resultType, ParameterType[] parameterTypes)
-