Class MemoryIO.NativeImpl32
java.lang.Object
com.kenai.jffi.MemoryIO
com.kenai.jffi.MemoryIO.NativeImpl
com.kenai.jffi.MemoryIO.NativeImpl32
- Enclosing class:
MemoryIO
A 32 bit optimized implementation of
MemoryIO using JNI.-
Field Summary
Fields inherited from class MemoryIO
ADDRESS_MASK, foreign -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal longgetAddress(long address) Reads a native memory address from a native memory location.final voidputAddress(long address, long value) Writes a native memory address value to a native memory location.Methods inherited from class MemoryIO.NativeImpl
_copyMemory, getByte, getByteArray, getCharArray, getDouble, getDoubleArray, getFloat, getFloatArray, getInt, getIntArray, getLong, getLongArray, getShort, getShortArray, getStringLength, getZeroTerminatedByteArray, getZeroTerminatedByteArray, memchr, memcpy, memmove, putByte, putByteArray, putCharArray, putDouble, putDoubleArray, putFloat, putFloatArray, putInt, putIntArray, putLong, putLongArray, putShort, putShortArray, putZeroTerminatedByteArray, setMemoryMethods inherited from class MemoryIO
allocateMemory, copyMemory, freeMemory, getCheckedInstance, getDirectBufferAddress, getInstance, getZeroTerminatedByteArray, indexOf, indexOf, isUnsafeAvailable, memset, newDirectByteBuffer
-
Constructor Details
-
NativeImpl32
private NativeImpl32()
-
-
Method Details
-
getAddress
public final long getAddress(long address) Description copied from class:MemoryIOReads a native memory address from a native memory location.- Specified by:
getAddressin classMemoryIO- Parameters:
address- The memory location to get the value from.- Returns:
- A long containing the value.
-
putAddress
public final void putAddress(long address, long value) Description copied from class:MemoryIOWrites a native memory address value to a native memory location.- Specified by:
putAddressin classMemoryIO- Parameters:
address- The memory location to put the value.value- The value to write to memory.
-