Top Fields Constructors Methods
jnr.ffi.provider.jffi

public Class ByteBufferMemoryIO

extends AbstractBufferMemoryIO
Class Inheritance
Imports
com.kenai.jffi.MemoryIO, jnr.ffi.Pointer, jnr.ffi.provider.AbstractBufferMemoryIO, java.nio.ByteBuffer

Field Summary

Inherited from jnr.ffi.provider.AbstractBufferMemoryIO:
buffer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static long
public Pointer
getPointer(long
the offset from the start of the memory this Pointer represents at which the value will be read.
offset
)

Implements abstract jnr.ffi.Pointer.getPointer.

Reads an Pointer value at the given offset.
public Pointer
getPointer(long
the offset from the start of the memory this Pointer represents at which the value will be read.
offset
,
long
the maximum size of the memory location the returned Pointer represents.
size
)

Implements abstract jnr.ffi.Pointer.getPointer.

Reads an Pointer value at the given offset.
public void
putPointer(long
The offset from the start of the memory this Pointer represents at which the value will be written.
offset
,
Pointer
the Pointer value to be written to memory.
value
)

Implements abstract jnr.ffi.Pointer.putPointer.

Writes a Pointer value at the given offset.
Inherited from jnr.ffi.provider.AbstractBufferMemoryIO:
arrayarrayLengtharrayOffsetgetgetgetgetgetgetgetBytegetByteBuffergetDoublegetFloatgetIntgetLongLonggetShortgetStringgetStringgetStringhasArrayindexOfputputputputputputputByteputDoubleputFloatputIntputLongLongputShortputStringputStringsetMemorysize

Constructor Detail

ByteBufferMemoryIOback to summary
public ByteBufferMemoryIO(Runtime runtime, ByteBuffer buffer)

Method Detail

addressback to summary
private static long address(ByteBuffer buffer)
getPointerback to summary
public Pointer getPointer(long offset)

Implements abstract jnr.ffi.Pointer.getPointer.

Doc from jnr.ffi.Pointer.getPointer.

Reads an Pointer value at the given offset.

Parameters
offset:long

the offset from the start of the memory this Pointer represents at which the value will be read.

Returns:Pointer

the Pointer value read from memory.

getPointerback to summary
public Pointer getPointer(long offset, long size)

Implements abstract jnr.ffi.Pointer.getPointer.

Doc from jnr.ffi.Pointer.getPointer.

Reads an Pointer value at the given offset.

Parameters
offset:long

the offset from the start of the memory this Pointer represents at which the value will be read.

size:long

the maximum size of the memory location the returned Pointer represents.

Returns:Pointer

the Pointer value read from memory.

putPointerback to summary
public void putPointer(long offset, Pointer value)

Implements abstract jnr.ffi.Pointer.putPointer.

Doc from jnr.ffi.Pointer.putPointer.

Writes a Pointer value at the given offset.

Parameters
offset:long

The offset from the start of the memory this Pointer represents at which the value will be written.

value:Pointer

the Pointer value to be written to memory.