Package com.kenai.jffi
Class MemoryIO.NativeImpl64
- java.lang.Object
-
- com.kenai.jffi.MemoryIO
-
- com.kenai.jffi.MemoryIO.NativeImpl
-
- com.kenai.jffi.MemoryIO.NativeImpl64
-
- Enclosing class:
- MemoryIO
private static final class MemoryIO.NativeImpl64 extends MemoryIO.NativeImpl
A 64 bit optimized implementation ofMemoryIOusing JNI.
-
-
Field Summary
-
Fields inherited from class com.kenai.jffi.MemoryIO
ADDRESS_MASK, foreign
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNativeImpl64()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAddress(long address)Reads a native memory address from a native memory location.voidputAddress(long address, long value)Writes a native memory address value to a native memory location.-
Methods inherited from class com.kenai.jffi.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, setMemory
-
Methods inherited from class com.kenai.jffi.MemoryIO
allocateMemory, copyMemory, freeMemory, getCheckedInstance, getDirectBufferAddress, getInstance, getZeroTerminatedByteArray, indexOf, indexOf, isUnsafeAvailable, memset, newDirectByteBuffer
-
-
-
-
Method Detail
-
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.
-
-