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
Reads 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 -
Method Summary
Modifier and TypeMethodDescription(package private) abstract int
get
(long address) Reads a native long argument from native memory.static final DirectClosureBuffer.NativeWordIO
(package private) abstract void
put
(long address, int value) Writes a native long argument to native memory.
-
Constructor Details
-
NativeWordIO
private NativeWordIO()
-
-
Method Details
-
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
-