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 intprivate static final intprivate static final intprivate static final BufferParameterStrategy[]private static final intprivate static final intprivate static final BufferParameterStrategy[]private static final intprivate static final intprivate final intprivate static final intFields inherited from class ParameterStrategy
objectCountFields inherited from class com.kenai.jffi.ObjectParameterStrategy
DIRECT, HEAP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBufferParameterStrategy(com.kenai.jffi.ObjectParameterStrategy.StrategyType type, com.kenai.jffi.ObjectParameterType.ComponentType componentType) -
Method Summary
Modifier and TypeMethodDescriptionlongstatic longprivate static longstatic longaddress(ByteBuffer ptr) static longaddress(CharBuffer ptr) static longaddress(DoubleBuffer ptr) static longaddress(FloatBuffer ptr) static longstatic longaddress(LongBuffer ptr) static longaddress(ShortBuffer ptr) (package private) static intcalculateShift(com.kenai.jffi.ObjectParameterType.ComponentType componentType) (package private) static BufferParameterStrategydirect(com.kenai.jffi.ObjectParameterType.ComponentType componentType) (package private) static BufferParameterStrategyheap(com.kenai.jffi.ObjectParameterType.ComponentType componentType) intintMethods 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:
addressin classcom.kenai.jffi.ObjectParameterStrategy
-
object
-
offset
- Specified by:
offsetin classcom.kenai.jffi.ObjectParameterStrategy
-
length
- Specified by:
lengthin 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
-