public final class ObjectAccess extends Object
Pointer
, these methods access the raw memory without any null checks, read- or write
barriers. When the VM uses compressed pointers, then readObject and writeObject methods access
compressed pointers.Constructor and Description |
---|
ObjectAccess() |
Modifier and Type | Method and Description |
---|---|
static byte |
readByte(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static byte |
readByte(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static byte |
readByte(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static byte |
readByte(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static char |
readChar(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static char |
readChar(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static char |
readChar(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static char |
readChar(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static double |
readDouble(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static double |
readDouble(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static double |
readDouble(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static double |
readDouble(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static float |
readFloat(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static float |
readFloat(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static float |
readFloat(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static float |
readFloat(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static int |
readInt(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static int |
readInt(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static int |
readInt(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static int |
readInt(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static long |
readLong(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static long |
readLong(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static long |
readLong(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static long |
readLong(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static Object |
readObject(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static Object |
readObject(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static Object |
readObject(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static Object |
readObject(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static short |
readShort(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static short |
readShort(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static short |
readShort(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static short |
readShort(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static Word |
readWord(Object object,
int offset)
Reads the memory at address
(object + offset) . |
static Word |
readWord(Object object,
int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static Word |
readWord(Object object,
WordBase offset)
Reads the memory at address
(object + offset) . |
static Word |
readWord(Object object,
WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(object + offset) . |
static void |
writeByte(Object object,
int offset,
byte val)
Writes the memory at address
(object + offset) . |
static void |
writeByte(Object object,
int offset,
byte val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeByte(Object object,
WordBase offset,
byte val)
Writes the memory at address
(object + offset) . |
static void |
writeByte(Object object,
WordBase offset,
byte val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeChar(Object object,
int offset,
char val)
Writes the memory at address
(object + offset) . |
static void |
writeChar(Object object,
int offset,
char val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeChar(Object object,
WordBase offset,
char val)
Writes the memory at address
(object + offset) . |
static void |
writeChar(Object object,
WordBase offset,
char val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeDouble(Object object,
int offset,
double val)
Writes the memory at address
(object + offset) . |
static void |
writeDouble(Object object,
int offset,
double val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeDouble(Object object,
WordBase offset,
double val)
Writes the memory at address
(object + offset) . |
static void |
writeDouble(Object object,
WordBase offset,
double val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeFloat(Object object,
int offset,
float val)
Writes the memory at address
(object + offset) . |
static void |
writeFloat(Object object,
int offset,
float val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeFloat(Object object,
WordBase offset,
float val)
Writes the memory at address
(object + offset) . |
static void |
writeFloat(Object object,
WordBase offset,
float val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeInt(Object object,
int offset,
int val)
Writes the memory at address
(object + offset) . |
static void |
writeInt(Object object,
int offset,
int val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeInt(Object object,
WordBase offset,
int val)
Writes the memory at address
(object + offset) . |
static void |
writeInt(Object object,
WordBase offset,
int val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeLong(Object object,
int offset,
long val)
Writes the memory at address
(object + offset) . |
static void |
writeLong(Object object,
int offset,
long val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeLong(Object object,
WordBase offset,
long val)
Writes the memory at address
(object + offset) . |
static void |
writeLong(Object object,
WordBase offset,
long val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeObject(Object object,
int offset,
Object val)
Writes the memory at address
(object + offset) . |
static void |
writeObject(Object object,
int offset,
Object val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeObject(Object object,
WordBase offset,
Object val)
Writes the memory at address
(object + offset) . |
static void |
writeObject(Object object,
WordBase offset,
Object val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeShort(Object object,
int offset,
short val)
Writes the memory at address
(object + offset) . |
static void |
writeShort(Object object,
int offset,
short val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeShort(Object object,
WordBase offset,
short val)
Writes the memory at address
(object + offset) . |
static void |
writeShort(Object object,
WordBase offset,
short val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeWord(Object object,
int offset,
WordBase val)
Writes the memory at address
(object + offset) . |
static void |
writeWord(Object object,
int offset,
WordBase val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
static void |
writeWord(Object object,
WordBase offset,
WordBase val)
Writes the memory at address
(object + offset) . |
static void |
writeWord(Object object,
WordBase offset,
WordBase val,
LocationIdentity locationIdentity)
Writes the memory at address
(object + offset) . |
public ObjectAccess()
public static byte readByte(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static char readChar(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static short readShort(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static int readInt(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static long readLong(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static float readFloat(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static double readDouble(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static Word readWord(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static Object readObject(Object object, WordBase offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static byte readByte(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static char readChar(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static short readShort(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static int readInt(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static long readLong(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static float readFloat(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static double readDouble(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static Word readWord(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static Object readObject(Object object, int offset, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic static void writeByte(Object object, WordBase offset, byte val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeChar(Object object, WordBase offset, char val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeShort(Object object, WordBase offset, short val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeInt(Object object, WordBase offset, int val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeLong(Object object, WordBase offset, long val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeFloat(Object object, WordBase offset, float val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeDouble(Object object, WordBase offset, double val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeWord(Object object, WordBase offset, WordBase val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeObject(Object object, WordBase offset, Object val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeByte(Object object, int offset, byte val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeChar(Object object, int offset, char val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeShort(Object object, int offset, short val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeInt(Object object, int offset, int val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeLong(Object object, int offset, long val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeFloat(Object object, int offset, float val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeDouble(Object object, int offset, double val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeWord(Object object, int offset, WordBase val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static void writeObject(Object object, int offset, Object val, LocationIdentity locationIdentity)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic static byte readByte(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static char readChar(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static short readShort(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static int readInt(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static long readLong(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static float readFloat(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static double readDouble(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static Word readWord(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static Object readObject(Object object, WordBase offset)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static byte readByte(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static char readChar(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static short readShort(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static int readInt(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static long readLong(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static float readFloat(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static double readDouble(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static Word readWord(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static Object readObject(Object object, int offset)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accesspublic static void writeByte(Object object, WordBase offset, byte val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeChar(Object object, WordBase offset, char val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeShort(Object object, WordBase offset, short val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeInt(Object object, WordBase offset, int val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeLong(Object object, WordBase offset, long val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeFloat(Object object, WordBase offset, float val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeDouble(Object object, WordBase offset, double val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeWord(Object object, WordBase offset, WordBase val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeObject(Object object, WordBase offset, Object val)
(object + offset)
. The offset is in bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeByte(Object object, int offset, byte val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeChar(Object object, int offset, char val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeShort(Object object, int offset, short val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeInt(Object object, int offset, int val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeLong(Object object, int offset, long val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeFloat(Object object, int offset, float val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeDouble(Object object, int offset, double val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeWord(Object object, int offset, WordBase val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memorypublic static void writeObject(Object object, int offset, Object val)
(object + offset)
. The offset is in bytes.object
- the base object for the memory accessoffset
- the signed offset for the memory accessval
- the value to be written to memory