|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Pointer
jnr.ffi.provider.AbstractMemoryIO
jnr.ffi.provider.AbstractArrayMemoryIO
jnr.ffi.provider.jffi.ArrayMemoryIO
public final class ArrayMemoryIO
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jnr.ffi.provider.AbstractArrayMemoryIO |
|---|
AbstractArrayMemoryIO.ArrayIO |
| Field Summary |
|---|
| Fields inherited from class jnr.ffi.provider.AbstractArrayMemoryIO |
|---|
buffer, length, offset |
| Constructor Summary | |
|---|---|
ArrayMemoryIO(int size)
|
|
ArrayMemoryIO(Runtime runtime,
int size)
|
|
| Method Summary | |
|---|---|
Pointer |
getPointer(long offset)
Reads an Pointer value at the given offset. |
Pointer |
getPointer(long offset,
long size)
Reads an Pointer value at the given offset. |
void |
putPointer(long offset,
Pointer value)
Writes a Pointer value at the given offset. |
| Methods inherited from class jnr.ffi.provider.AbstractArrayMemoryIO |
|---|
address, array, arrayLength, arrayOffset, clear, get, get, get, get, get, get, getAddress, getArrayIO, getByte, getDouble, getFloat, getInt, getLongLong, getShort, getString, getString, hasArray, index, indexOf, indexOf, isDirect, isNull, length, offset, put, put, put, put, put, put, putAddress, putByte, putDouble, putFloat, putInt, putLongLong, putShort, putString, putZeroTerminatedByteArray, remaining, setMemory, size |
| Methods inherited from class jnr.ffi.provider.AbstractMemoryIO |
|---|
checkBounds, checkBounds, getInt, getLong, getNativeLong, getRuntime, putAddress, putInt, putLong, putNativeLong, slice, slice, transferFrom, transferTo |
| Methods inherited from class jnr.ffi.Pointer |
|---|
newIntPointer, wrap, wrap, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayMemoryIO(Runtime runtime,
int size)
public ArrayMemoryIO(int size)
| Method Detail |
|---|
public Pointer getPointer(long offset)
PointerPointer value at the given offset.
getPointer in class Pointeroffset - the offset from the start of the memory this Pointer represents at which the value will be read.
Pointer value read from memory.
public Pointer getPointer(long offset,
long size)
PointerPointer value at the given offset.
getPointer in class Pointeroffset - the offset from the start of the memory this Pointer represents at which the value will be read.size - the maximum size of the memory location the returned Pointer represents.
Pointer value read from memory.
public void putPointer(long offset,
Pointer value)
PointerPointer value at the given offset.
putPointer in class Pointeroffset - The offset from the start of the memory this Pointer represents at which the value will be written.value - the Pointer value to be written to memory.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||