Package jnr.ffi.provider.jffi
Class ByteBufferMemoryIO
java.lang.Object
jnr.ffi.Pointer
jnr.ffi.provider.AbstractMemoryIO
jnr.ffi.provider.AbstractBufferMemoryIO
jnr.ffi.provider.jffi.ByteBufferMemoryIO
-
Field Summary
Fields inherited from class jnr.ffi.provider.AbstractBufferMemoryIO
buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPointer
(long offset) Reads anPointer
value at the given offset.getPointer
(long offset, long size) Reads anPointer
value at the given offset.void
putPointer
(long offset, Pointer value) Writes aPointer
value at the given offset.Methods inherited from class jnr.ffi.provider.AbstractBufferMemoryIO
array, arrayLength, arrayOffset, get, get, get, get, get, get, getByte, getByteBuffer, getDouble, getFloat, getInt, getLongLong, getShort, getString, getString, getString, hasArray, indexOf, put, put, put, put, put, put, putByte, putDouble, putFloat, putInt, putLongLong, putShort, putString, putString, setMemory, size
Methods inherited from class jnr.ffi.provider.AbstractMemoryIO
checkBounds, checkBounds, getAddress, getInt, getLong, getNativeLong, indexOf, putAddress, putAddress, putInt, putLong, putNativeLong, slice, slice, transferFrom, transferTo
Methods inherited from class jnr.ffi.Pointer
address, get, getNullTerminatedPointerArray, getNullTerminatedStringArray, getRuntime, isDirect, newIntPointer, put, toString, wrap, wrap, wrap
-
Constructor Details
-
ByteBufferMemoryIO
-
-
Method Details
-
getPointer
Description copied from class:Pointer
Reads anPointer
value at the given offset.- Specified by:
getPointer
in classPointer
- Parameters:
offset
- the offset from the start of the memory thisPointer
represents at which the value will be read.- Returns:
- the
Pointer
value read from memory.
-
getPointer
Description copied from class:Pointer
Reads anPointer
value at the given offset.- Specified by:
getPointer
in classPointer
- Parameters:
offset
- the offset from the start of the memory thisPointer
represents at which the value will be read.size
- the maximum size of the memory location the returnedPointer
represents.- Returns:
- the
Pointer
value read from memory.
-
putPointer
Description copied from class:Pointer
Writes aPointer
value at the given offset.- Specified by:
putPointer
in classPointer
- Parameters:
offset
- The offset from the start of the memory thisPointer
represents at which the value will be written.value
- thePointer
value to be written to memory.
-