Package jnr.ffi.provider.jffi
Class BufferParameterStrategy
java.lang.Object
com.kenai.jffi.ObjectParameterStrategy
jnr.ffi.provider.jffi.ParameterStrategy
jnr.ffi.provider.jffi.BufferParameterStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kenai.jffi.ObjectParameterStrategy
com.kenai.jffi.ObjectParameterStrategy.StrategyType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final BufferParameterStrategy[]
private static final int
private static final int
private static final BufferParameterStrategy[]
private static final int
private static final int
private final int
private static final int
Fields inherited from class jnr.ffi.provider.jffi.ParameterStrategy
objectCount
Fields inherited from class com.kenai.jffi.ObjectParameterStrategy
DIRECT, HEAP
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
BufferParameterStrategy
(com.kenai.jffi.ObjectParameterStrategy.StrategyType type, com.kenai.jffi.ObjectParameterType.ComponentType componentType) -
Method Summary
Modifier and TypeMethodDescriptionlong
static long
private static long
static long
address
(ByteBuffer ptr) static long
address
(CharBuffer ptr) static long
address
(DoubleBuffer ptr) static long
address
(FloatBuffer ptr) static long
static long
address
(LongBuffer ptr) static long
address
(ShortBuffer ptr) (package private) static int
calculateShift
(com.kenai.jffi.ObjectParameterType.ComponentType componentType) (package private) static BufferParameterStrategy
direct
(com.kenai.jffi.ObjectParameterType.ComponentType componentType) (package private) static BufferParameterStrategy
heap
(com.kenai.jffi.ObjectParameterType.ComponentType componentType) int
int
Methods inherited from class com.kenai.jffi.ObjectParameterStrategy
isDirect
-
Field Details
-
BYTE_POSITION_SHIFT
private static final int BYTE_POSITION_SHIFT- See Also:
-
SHORT_POSITION_SHIFT
private static final int SHORT_POSITION_SHIFT- See Also:
-
CHAR_POSITION_SHIFT
private static final int CHAR_POSITION_SHIFT- See Also:
-
BOOLEAN_POSITION_SHIFT
private static final int BOOLEAN_POSITION_SHIFT- See Also:
-
INT_POSITION_SHIFT
private static final int INT_POSITION_SHIFT- See Also:
-
FLOAT_POSITION_SHIFT
private static final int FLOAT_POSITION_SHIFT- See Also:
-
LONG_POSITION_SHIFT
private static final int LONG_POSITION_SHIFT- See Also:
-
DOUBLE_POSITION_SHIFT
private static final int DOUBLE_POSITION_SHIFT- See Also:
-
shift
private final int shift -
DIRECT_BUFFER_PARAMETER_STRATEGIES
-
HEAP_BUFFER_PARAMETER_STRATEGIES
-
-
Constructor Details
-
BufferParameterStrategy
private BufferParameterStrategy(com.kenai.jffi.ObjectParameterStrategy.StrategyType type, com.kenai.jffi.ObjectParameterType.ComponentType componentType)
-
-
Method Details
-
address
-
address
-
address
-
address
-
address
-
address
-
address
-
address
-
address
-
address
- Specified by:
address
in classcom.kenai.jffi.ObjectParameterStrategy
-
object
- Specified by:
object
in classcom.kenai.jffi.ObjectParameterStrategy
-
offset
- Specified by:
offset
in classcom.kenai.jffi.ObjectParameterStrategy
-
length
- Specified by:
length
in classcom.kenai.jffi.ObjectParameterStrategy
-
calculateShift
static int calculateShift(com.kenai.jffi.ObjectParameterType.ComponentType componentType) -
direct
static BufferParameterStrategy direct(com.kenai.jffi.ObjectParameterType.ComponentType componentType) -
heap
-