Package com.kenai.jffi
Class UnsafeMemoryIO.UnsafeMemoryIO64
- java.lang.Object
-
- com.kenai.jffi.MemoryIO
-
- com.kenai.jffi.UnsafeMemoryIO
-
- com.kenai.jffi.UnsafeMemoryIO.UnsafeMemoryIO64
-
- Enclosing class:
- UnsafeMemoryIO
static class UnsafeMemoryIO.UnsafeMemoryIO64 extends UnsafeMemoryIO
A 64 bit optimized implementation ofMemoryIO
using sun.misc.Unsafe
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.kenai.jffi.UnsafeMemoryIO
UnsafeMemoryIO.UnsafeMemoryIO32, UnsafeMemoryIO.UnsafeMemoryIO64
-
-
Field Summary
-
Fields inherited from class com.kenai.jffi.UnsafeMemoryIO
unsafe
-
Fields inherited from class com.kenai.jffi.MemoryIO
ADDRESS_MASK, foreign
-
-
Constructor Summary
Constructors Constructor Description UnsafeMemoryIO64()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAddress(long address)
Reads a native memory address from a native memory location.void
putAddress(long address, long value)
Writes a native memory address value to a native memory location.-
Methods inherited from class com.kenai.jffi.UnsafeMemoryIO
_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:MemoryIO
Reads a native memory address from a native memory location.- Specified by:
getAddress
in 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:MemoryIO
Writes a native memory address value to a native memory location.- Specified by:
putAddress
in classMemoryIO
- Parameters:
address
- The memory location to put the value.value
- The value to write to memory.
-
-