|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JMemory
A memory area in the Corosol JVM. The JMemory interface provides methods for reading and writing each Java primitive type value into this memory.
| Method Summary | |
|---|---|
boolean |
readBoolean(int index)
Reads a boolean value starting at the specified position in this memory. |
byte |
readByte(int index)
Reads one byte at the specified position in this memory. |
char |
readChar(int index)
Reads a char value starting at the specified position in this memory. |
double |
readDouble(int index)
Reads a double value starting at the specified position in this memory. |
float |
readFloat(int index)
Reads a float value starting at the specified position in this memory. |
int |
readInt(int index)
Reads an int value starting at the specified position in this memory. |
long |
readLong(int index)
Reads a long value starting at the specified position in this memory. |
JHeapObject |
readReference(int index)
Reads a reference value starting at the specified position in this memory and returns the object it referents to. |
short |
readShort(int index)
Reads a short value starting at the specified position in this memory. |
int |
size()
Returns the number of bytes composing this memory. |
int |
sizeof(JClass type)
Returns the number of bytes of the specified type. |
void |
writeBoolean(int index,
boolean value)
Writes the specified boolean value at the specified position in this memory. |
void |
writeByte(int index,
byte value)
Writes the specified byte value at the specified position in this memory. |
void |
writeChar(int index,
char value)
Writes the specified char value at the specified position in this memory. |
void |
writeDouble(int index,
double value)
Writes the specified double at the specified position in this memory. |
void |
writeFloat(int index,
float value)
Writes the specified float at the specified position in this memory. |
void |
writeInt(int index,
int value)
Writes the specified int value at the specified position in this memory. |
void |
writeLong(int index,
long value)
Writes the specified long at the specified position in this memory. |
void |
writeReference(int index,
JHeapObject object)
Writes the reference of the specified object at the specified position in this memory. |
void |
writeShort(int index,
short value)
Writes the specified short value at the specified position in this memory. |
| Method Detail |
|---|
byte readByte(int index)
index - index at which the byte is to be read
boolean readBoolean(int index)
index - index at which the boolean value is to be read
short readShort(int index)
index - index at which the short value is to be read
char readChar(int index)
index - index at which the char value is to be read
int readInt(int index)
index - index at which the int value is to be read
float readFloat(int index)
index - index at which the float value is to be read
long readLong(int index)
index - index at which the long value is to be read
double readDouble(int index)
index - index at which the double value is to be read
JHeapObject readReference(int index)
index - index at which the reference value is to be read
void writeByte(int index,
byte value)
index - index at which the byte value is to be writedvalue - the byte value to be writed in this memory
void writeBoolean(int index,
boolean value)
index - index at which the boolean value is to be writedvalue - the boolean value to be writed in this memory
void writeChar(int index,
char value)
index - index at which the char value is to be writedvalue - the char value to be writed in this memory
void writeShort(int index,
short value)
index - index at which the short value is to be writedvalue - the short value to be writed in this memory
void writeInt(int index,
int value)
index - index at which the int value is to be writedvalue - the int value to be writed in this memory
void writeFloat(int index,
float value)
index - index at which the float value is to be writedvalue - the float value to be writed in this memory
void writeLong(int index,
long value)
index - index at which the long value is to be writedvalue - the long value to be writed in this memory
void writeDouble(int index,
double value)
index - index at which the double value is to be writedvalue - the double value to be writed in this memory
void writeReference(int index,
JHeapObject object)
index - index at which the reference value is to be writedobject - the object which reference is to be writed in this memoryint size()
int sizeof(JClass type)
type - a class representing a Java type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||