Top Fields Constructors Methods
jnr.ffi.provider.jffi

public final Class ArrayMemoryIO

extends AbstractArrayMemoryIO
Class Inheritance
Imports
jnr.ffi.Pointer, .Runtime, jnr.ffi.provider.AbstractArrayMemoryIO

Field Summary

Inherited from jnr.ffi.provider.AbstractArrayMemoryIO:
bufferlengthoffset

Constructor Summary

AccessConstructor and Description
public
ArrayMemoryIO(Runtime runtime, int size)

public
ArrayMemoryIO(Runtime runtime, byte[] bytes, int off, int len)

Method Summary

Modifier and TypeMethod and Description
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.AbstractArrayMemoryIO:
arrayarrayLengtharrayOffsetcleargetgetgetgetgetgetgetAddressgetArrayIOgetBytegetDoublegetFloatgetIntgetLongLonggetShortgetStringgetStringhasArrayindexindexOfindexOfisNulllengthoffsetputputputputputputputAddressputByteputDoubleputFloatputIntputLongLongputShortputStringputZeroTerminatedByteArrayremainingsetMemorysize

Constructor Detail

ArrayMemoryIOback to summary
public ArrayMemoryIO(Runtime runtime, int size)
ArrayMemoryIOback to summary
public ArrayMemoryIO(Runtime runtime, byte[] bytes, int off, int len)

Method Detail

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.

Annotations
@Override
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.

Annotations
@Override