public final class HeapMemory extends AbstractMemory
| Constructor and Description |
|---|
HeapMemory(byte[] data,
java.nio.ByteOrder endianness) |
HeapMemory(byte[] data,
int offset,
int length,
java.nio.ByteOrder endianness) |
HeapMemory(int length,
java.nio.ByteOrder endianness) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getByte(long l) |
void |
getBytes(long l,
byte[] bytes) |
void |
getBytes(long l,
byte[] bytes,
int start,
int length) |
void |
getBytes(long l,
java.nio.ByteBuffer dest) |
void |
getBytes(long l,
Memory dest) |
void |
getBytes(long l,
Memory dest,
long start,
long length) |
char |
getChar(long l) |
double |
getDouble(long l) |
float |
getFloat(long l) |
int |
getInt(long l) |
long |
getLong(long l) |
java.nio.ByteOrder |
getOrder() |
short |
getShort(long l) |
boolean |
isDirect() |
long |
length() |
void |
putByte(long l,
byte b) |
void |
putBytes(long l,
byte[] bytes) |
void |
putBytes(long l,
byte[] bytes,
int start,
int length) |
void |
putBytes(long l,
java.nio.ByteBuffer source) |
void |
putBytes(long l,
Memory source) |
void |
putBytes(long l,
Memory source,
long start,
long length) |
void |
putChar(long l,
char c) |
void |
putDouble(long l,
double v) |
void |
putFloat(long l,
float v) |
void |
putInt(long l,
int i) |
void |
putLong(long l,
long l1) |
void |
putShort(long l,
short i) |
Memory |
slice(long startAddress,
long sliceLength) |
byteArray, charArray, doubleArray, floatArray, intArray, longArray, shortArraypublic HeapMemory(int length,
java.nio.ByteOrder endianness)
public HeapMemory(byte[] data,
java.nio.ByteOrder endianness)
public HeapMemory(byte[] data,
int offset,
int length,
java.nio.ByteOrder endianness)
public byte getByte(long l)
public void putByte(long l,
byte b)
public short getShort(long l)
public void putShort(long l,
short i)
public char getChar(long l)
public void putChar(long l,
char c)
public int getInt(long l)
public void putInt(long l,
int i)
public long getLong(long l)
public void putLong(long l,
long l1)
public float getFloat(long l)
public void putFloat(long l,
float v)
public double getDouble(long l)
public void putDouble(long l,
double v)
public void putBytes(long l,
byte[] bytes)
public void putBytes(long l,
byte[] bytes,
int start,
int length)
public void putBytes(long l,
Memory source)
public void putBytes(long l,
Memory source,
long start,
long length)
public void putBytes(long l,
java.nio.ByteBuffer source)
public void getBytes(long l,
byte[] bytes)
public void getBytes(long l,
byte[] bytes,
int start,
int length)
public void getBytes(long l,
Memory dest)
public void getBytes(long l,
Memory dest,
long start,
long length)
public void getBytes(long l,
java.nio.ByteBuffer dest)
public Memory slice(long startAddress, long sliceLength)
public long length()
public boolean isDirect()
public java.nio.ByteOrder getOrder()