public final class BufferParameterStrategy extends ParameterStrategy
| Modifier and Type | Field and Description |
|---|---|
private static BufferParameterStrategy[] |
DIRECT_BUFFER_PARAMETER_STRATEGIES |
private static BufferParameterStrategy[] |
HEAP_BUFFER_PARAMETER_STRATEGIES |
private int |
shift |
objectCount| Modifier | Constructor and Description |
|---|---|
private |
BufferParameterStrategy(com.kenai.jffi.ObjectParameterStrategy.StrategyType type,
com.kenai.jffi.ObjectParameterType.ComponentType componentType) |
| Modifier and Type | Method and Description |
|---|---|
long |
address(java.nio.Buffer buffer) |
long |
address(java.lang.Object o) |
(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 |
length(java.lang.Object o) |
java.lang.Object |
object(java.lang.Object o) |
int |
offset(java.lang.Object o) |
private final int shift
private static final BufferParameterStrategy[] DIRECT_BUFFER_PARAMETER_STRATEGIES
private static final BufferParameterStrategy[] HEAP_BUFFER_PARAMETER_STRATEGIES
private BufferParameterStrategy(com.kenai.jffi.ObjectParameterStrategy.StrategyType type,
com.kenai.jffi.ObjectParameterType.ComponentType componentType)
public long address(java.nio.Buffer buffer)
public long address(java.lang.Object o)
address in class com.kenai.jffi.ObjectParameterStrategypublic java.lang.Object object(java.lang.Object o)
object in class com.kenai.jffi.ObjectParameterStrategypublic int offset(java.lang.Object o)
offset in class com.kenai.jffi.ObjectParameterStrategypublic int length(java.lang.Object o)
length in class com.kenai.jffi.ObjectParameterStrategystatic int calculateShift(com.kenai.jffi.ObjectParameterType.ComponentType componentType)
static BufferParameterStrategy direct(com.kenai.jffi.ObjectParameterType.ComponentType componentType)
static BufferParameterStrategy heap(com.kenai.jffi.ObjectParameterType.ComponentType componentType)