Package com.kenai.jffi
Class DirectClosureBuffer.NativeWordIO
- java.lang.Object
-
- com.kenai.jffi.DirectClosureBuffer.NativeWordIO
-
- Direct Known Subclasses:
DirectClosureBuffer.NativeWordIO32,DirectClosureBuffer.NativeWordIO64
- Enclosing class:
- DirectClosureBuffer
private abstract static class DirectClosureBuffer.NativeWordIO extends java.lang.ObjectReads annd writes data types that are smaller than the size of a native long, as a native long for compatibility with FFI.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNativeWordIO()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract intget(long address)Reads a native long argument from native memory.static DirectClosureBuffer.NativeWordIOgetInstance()(package private) abstract voidput(long address, int value)Writes a native long argument to native memory.
-
-
-
Method Detail
-
getInstance
public static final DirectClosureBuffer.NativeWordIO getInstance()
-
put
abstract void put(long address, int value)Writes a native long argument to native memory.- Parameters:
address- The address to write the value atvalue- The value to write.
-
get
abstract int get(long address)
Reads a native long argument from native memory.- Parameters:
address- The memory address to read the value from- Returns:
- An integer
-
-