Package jnr.ffi.provider.jffi
Class ArrayMemoryIO
java.lang.Object
jnr.ffi.Pointer
jnr.ffi.provider.AbstractMemoryIO
jnr.ffi.provider.AbstractArrayMemoryIO
jnr.ffi.provider.jffi.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
ConstructorsConstructorDescriptionArrayMemoryIO(Runtime runtime, byte[] bytes, int off, int len) ArrayMemoryIO(Runtime runtime, int size) -
Method Summary
Modifier and TypeMethodDescriptiongetPointer(long offset) Reads anPointervalue at the given offset.getPointer(long offset, long size) Reads anPointervalue at the given offset.voidputPointer(long offset, Pointer value) Writes aPointervalue at the given offset.Methods inherited from class jnr.ffi.provider.AbstractArrayMemoryIO
array, arrayLength, arrayOffset, clear, get, get, get, get, get, get, getAddress, getArrayIO, getByte, getDouble, getFloat, getInt, getLongLong, getShort, getString, getString, hasArray, index, indexOf, indexOf, isNull, length, offset, put, put, put, put, put, put, putAddress, putByte, putDouble, putFloat, putInt, putLongLong, putShort, putString, putZeroTerminatedByteArray, remaining, setMemory, sizeMethods inherited from class jnr.ffi.provider.AbstractMemoryIO
checkBounds, checkBounds, getInt, getLong, getNativeLong, putAddress, putInt, putLong, putNativeLong, slice, slice, transferFrom, transferToMethods inherited from class jnr.ffi.Pointer
address, get, getNullTerminatedPointerArray, getNullTerminatedStringArray, getRuntime, isDirect, newIntPointer, put, toString, wrap, wrap, wrap
-
Constructor Details
-
ArrayMemoryIO
-
ArrayMemoryIO
-
-
Method Details
-
getPointer
Description copied from class:PointerReads anPointervalue at the given offset.- Specified by:
getPointerin classPointer- Parameters:
offset- the offset from the start of the memory thisPointerrepresents at which the value will be read.- Returns:
- the
Pointervalue read from memory.
-
getPointer
Description copied from class:PointerReads anPointervalue at the given offset.- Specified by:
getPointerin classPointer- Parameters:
offset- the offset from the start of the memory thisPointerrepresents at which the value will be read.size- the maximum size of the memory location the returnedPointerrepresents.- Returns:
- the
Pointervalue read from memory.
-
putPointer
Description copied from class:PointerWrites aPointervalue at the given offset.- Specified by:
putPointerin classPointer- Parameters:
offset- The offset from the start of the memory thisPointerrepresents at which the value will be written.value- thePointervalue to be written to memory.
-