|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kenai.jaffl.MemoryIO
com.kenai.jaffl.provider.AbstractMemoryIO
com.kenai.jaffl.provider.ShareMemoryIO
public class ShareMemoryIO
| Field Summary |
|---|
| Fields inherited from interface com.kenai.jaffl.Pointer |
|---|
SIZE |
| Constructor Summary | |
|---|---|
ShareMemoryIO(MemoryIO parent,
long offset)
|
|
| Method Summary | |
|---|---|
long |
address()
Gets the native address of this memory object (optional operation). |
void |
get(long offset,
byte[] dst,
int off,
int len)
Bulk byte get method. |
void |
get(long offset,
double[] dst,
int off,
int len)
Bulk double get method. |
void |
get(long offset,
float[] dst,
int off,
int len)
Bulk float get method. |
void |
get(long offset,
int[] dst,
int off,
int len)
Bulk int get method. |
void |
get(long offset,
long[] dst,
int off,
int len)
Bulk long get method. |
void |
get(long offset,
short[] dst,
int off,
int len)
Bulk short get method. |
byte |
getByte(long offset)
Reads a 8 bit integer at the given offset. |
MemoryIO |
getDelegatedMemoryIO()
|
double |
getDouble(long offset)
Reads a 64 bit floating point value at the given offset. |
float |
getFloat(long offset)
Reads a 32 bit floating point value at the given offset. |
int |
getInt(long offset)
Reads a 32 bit integer at the given offset. |
long |
getLong(long offset)
Reads a 64 bit integer at the given offset. |
MemoryIO |
getMemoryIO(long offset)
|
MemoryIO |
getMemoryIO(long offset,
long size)
|
Pointer |
getPointer(long offset)
|
short |
getShort(long offset)
Reads a 16 bit integer at the given offset. |
java.lang.String |
getString(long offset)
|
java.lang.String |
getString(long offset,
int maxLength,
java.nio.charset.Charset cs)
|
int |
indexOf(long offset,
byte value,
int maxlen)
|
boolean |
isDirect()
Tells whether or not this memory object is direct. |
void |
put(long offset,
byte[] dst,
int off,
int len)
Bulk byte put method. |
void |
put(long offset,
double[] dst,
int off,
int len)
Bulk double put method. |
void |
put(long offset,
float[] dst,
int off,
int len)
Bulk float put method. |
void |
put(long offset,
int[] dst,
int off,
int len)
Bulk int put method. |
void |
put(long offset,
long[] dst,
int off,
int len)
Bulk long put method. |
void |
put(long offset,
short[] dst,
int off,
int len)
Bulk short put method. |
void |
putByte(long offset,
byte value)
Writes an 8 bit integer value at the given offset. |
void |
putDouble(long offset,
double value)
Writes a 64 bit floating point value at the given offset. |
void |
putFloat(long offset,
float value)
Writes a 32 bit floating point value at the given offset. |
void |
putInt(long offset,
int value)
Writes a 32 bit integer value at the given offset. |
void |
putLong(long offset,
long value)
Writes a 64 bit integer value at the given offset. |
void |
putPointer(long offset,
Pointer value)
|
void |
putShort(long offset,
short value)
Writes a 16 bit integer value at the given offset. |
void |
putString(long offset,
java.lang.String string,
int maxLength,
java.nio.charset.Charset cs)
|
void |
setMemory(long offset,
long size,
byte value)
|
| Methods inherited from class com.kenai.jaffl.provider.AbstractMemoryIO |
|---|
checkBounds, getAddress, getNativeLong, indexOf, putAddress, putAddress, putNativeLong, slice, slice, transferFrom, transferTo |
| Methods inherited from class com.kenai.jaffl.MemoryIO |
|---|
allocate, allocateDirect, allocateDirect, wrap, wrap, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShareMemoryIO(MemoryIO parent,
long offset)
| Method Detail |
|---|
public final boolean isDirect()
MemoryIO
isDirect in interface PointerisDirect in class MemoryIOpublic long address()
MemoryIO
address in interface Pointeraddress in class MemoryIOpublic final MemoryIO getDelegatedMemoryIO()
getDelegatedMemoryIO in interface DelegatingMemoryIOpublic byte getByte(long offset)
MemoryIO
getByte in interface PointergetByte in class MemoryIOoffset - The offset from which the integer will be read.
public short getShort(long offset)
MemoryIO
getShort in interface PointergetShort in class MemoryIOoffset - The offset from which the integer will be read.
public int getInt(long offset)
MemoryIO
getInt in interface PointergetInt in class MemoryIOoffset - The offset from which the integer will be read.
public long getLong(long offset)
MemoryIO
getLong in interface PointergetLong in class MemoryIOoffset - The offset from which the integer will be read.
public float getFloat(long offset)
MemoryIO
getFloat in interface PointergetFloat in class MemoryIOoffset - The offset from which the integer will be read.
public double getDouble(long offset)
MemoryIO
getDouble in interface PointergetDouble in class MemoryIOoffset - The offset from which the integer will be read.
public MemoryIO getMemoryIO(long offset)
getMemoryIO in class MemoryIO
public MemoryIO getMemoryIO(long offset,
long size)
getMemoryIO in class MemoryIOpublic Pointer getPointer(long offset)
getPointer in interface PointergetPointer in class MemoryIOpublic java.lang.String getString(long offset)
getString in interface PointergetString in class MemoryIO
public java.lang.String getString(long offset,
int maxLength,
java.nio.charset.Charset cs)
getString in class MemoryIO
public void putByte(long offset,
byte value)
MemoryIO
putByte in interface PointerputByte in class MemoryIOoffset - The offset at which the value will be written.value - The value to be written.
public void putShort(long offset,
short value)
MemoryIO
putShort in interface PointerputShort in class MemoryIOoffset - The offset at which the value will be written.value - The value to be written.
public void putInt(long offset,
int value)
MemoryIO
putInt in interface PointerputInt in class MemoryIOoffset - The offset at which the value will be written.value - The value to be written.
public void putLong(long offset,
long value)
MemoryIO
putLong in interface PointerputLong in class MemoryIOoffset - The offset at which the value will be written.value - The value to be written.
public void putFloat(long offset,
float value)
MemoryIO
putFloat in interface PointerputFloat in class MemoryIOoffset - The offset at which the value will be written.value - The value to be written.
public void putDouble(long offset,
double value)
MemoryIO
putDouble in interface PointerputDouble in class MemoryIOoffset - The offset at which the value will be written.value - The value to be written.
public void putPointer(long offset,
Pointer value)
putPointer in interface PointerputPointer in class MemoryIO
public void putString(long offset,
java.lang.String string,
int maxLength,
java.nio.charset.Charset cs)
putString in class MemoryIO
public void get(long offset,
byte[] dst,
int off,
int len)
MemoryIO
get in interface Pointerget in class MemoryIOoffset - The offset at which the values will be read.dst - The array into which values are to be written.off - The index within the destination array of the first value to be written.len - The number of values to be written to the destination array.
public void put(long offset,
byte[] dst,
int off,
int len)
MemoryIO
put in interface Pointerput in class MemoryIOoffset - The offset at which the values will be written.dst - The source array from which values are to be read.off - The index within the destination array of the first value to be read.len - The number of values to be read from the source array.
public void get(long offset,
short[] dst,
int off,
int len)
MemoryIO
get in interface Pointerget in class MemoryIOoffset - The offset at which the values will be read.dst - The array into which values are to be written.off - The index within the destination array of the first value to be written.len - The number of values to be written to the destination array.
public void put(long offset,
short[] dst,
int off,
int len)
MemoryIO
put in interface Pointerput in class MemoryIOoffset - The offset at which the values will be written.dst - The source array from which values are to be read.off - The index within the destination array of the first value to be read.len - The number of values to be read from the source array.
public void get(long offset,
int[] dst,
int off,
int len)
MemoryIO
get in interface Pointerget in class MemoryIOoffset - The offset at which the values will be read.dst - The array into which values are to be written.off - The index within the destination array of the first value to be written.len - The number of values to be written to the destination array.
public void put(long offset,
int[] dst,
int off,
int len)
MemoryIO
put in interface Pointerput in class MemoryIOoffset - The offset at which the values will be written.dst - The source array from which values are to be read.off - The index within the destination array of the first value to be read.len - The number of values to be read from the source array.
public void get(long offset,
long[] dst,
int off,
int len)
MemoryIO
get in interface Pointerget in class MemoryIOoffset - The offset at which the values will be read.dst - The array into which values are to be written.off - The index within the destination array of the first value to be written.len - The number of values to be written to the destination array.
public void put(long offset,
long[] dst,
int off,
int len)
MemoryIO
put in interface Pointerput in class MemoryIOoffset - The offset at which the values will be written.dst - The source array from which values are to be read.off - The index within the destination array of the first value to be read.len - The number of values to be read from the source array.
public void get(long offset,
float[] dst,
int off,
int len)
MemoryIO
get in interface Pointerget in class MemoryIOoffset - The offset at which the values will be read.dst - The array into which values are to be written.off - The index within the destination array of the first value to be written.len - The number of values to be written to the destination array.
public void put(long offset,
float[] dst,
int off,
int len)
MemoryIO
put in interface Pointerput in class MemoryIOoffset - The offset at which the values will be written.dst - The source array from which values are to be read.off - The index within the destination array of the first value to be read.len - The number of values to be read from the source array.
public void get(long offset,
double[] dst,
int off,
int len)
MemoryIO
get in interface Pointerget in class MemoryIOoffset - The offset at which the values will be read.dst - The array into which values are to be written.off - The index within the destination array of the first value to be written.len - The number of values to be written to the destination array.
public void put(long offset,
double[] dst,
int off,
int len)
MemoryIO
put in interface Pointerput in class MemoryIOoffset - The offset at which the values will be written.dst - The source array from which values are to be read.off - The index within the destination array of the first value to be read.len - The number of values to be read from the source array.
public int indexOf(long offset,
byte value,
int maxlen)
indexOf in class MemoryIO
public void setMemory(long offset,
long size,
byte value)
setMemory in class MemoryIO
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||