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,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static byte |
readByte(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static byte |
readByte(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static char |
readChar(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static char |
readChar(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static double |
readDouble(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static double |
readDouble(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static float |
readFloat(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static float |
readFloat(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static int |
readInt(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static int |
readInt(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static long |
readLong(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static long |
readLong(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static Object |
readObject(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static Object |
readObject(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static short |
readShort(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static short |
readShort(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static <T extends org.graalvm.word.WordBase> |
readWord(Object object,
int offset)
Reads the memory at address
(object + offset). |
static <T extends org.graalvm.word.WordBase> |
readWord(Object object,
int offset,
org.graalvm.word.LocationIdentity locationIdentity)
Reads the memory at address
(object + offset). |
static <T extends org.graalvm.word.WordBase> |
readWord(Object object,
org.graalvm.word.WordBase offset)
Reads the memory at address
(object + offset). |
static <T extends org.graalvm.word.WordBase> |
readWord(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeByte(Object object,
org.graalvm.word.WordBase offset,
byte val)
Writes the memory at address
(object + offset). |
static void |
writeByte(Object object,
org.graalvm.word.WordBase offset,
byte val,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeChar(Object object,
org.graalvm.word.WordBase offset,
char val)
Writes the memory at address
(object + offset). |
static void |
writeChar(Object object,
org.graalvm.word.WordBase offset,
char val,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeDouble(Object object,
org.graalvm.word.WordBase offset,
double val)
Writes the memory at address
(object + offset). |
static void |
writeDouble(Object object,
org.graalvm.word.WordBase offset,
double val,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeFloat(Object object,
org.graalvm.word.WordBase offset,
float val)
Writes the memory at address
(object + offset). |
static void |
writeFloat(Object object,
org.graalvm.word.WordBase offset,
float val,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeInt(Object object,
org.graalvm.word.WordBase offset,
int val)
Writes the memory at address
(object + offset). |
static void |
writeInt(Object object,
org.graalvm.word.WordBase offset,
int val,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeLong(Object object,
org.graalvm.word.WordBase offset,
long val)
Writes the memory at address
(object + offset). |
static void |
writeLong(Object object,
org.graalvm.word.WordBase offset,
long val,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeObject(Object object,
org.graalvm.word.WordBase offset,
Object val)
Writes the memory at address
(object + offset). |
static void |
writeObject(Object object,
org.graalvm.word.WordBase offset,
Object val,
org.graalvm.word.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,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeShort(Object object,
org.graalvm.word.WordBase offset,
short val)
Writes the memory at address
(object + offset). |
static void |
writeShort(Object object,
org.graalvm.word.WordBase offset,
short val,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeWord(Object object,
int offset,
org.graalvm.word.WordBase val)
Writes the memory at address
(object + offset). |
static void |
writeWord(Object object,
int offset,
org.graalvm.word.WordBase val,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
static void |
writeWord(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.WordBase val)
Writes the memory at address
(object + offset). |
static void |
writeWord(Object object,
org.graalvm.word.WordBase offset,
org.graalvm.word.WordBase val,
org.graalvm.word.LocationIdentity locationIdentity)
Writes the memory at address
(object + offset). |
public static byte readByte(Object object, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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 <T extends org.graalvm.word.WordBase> T readWord(Object object, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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 <T extends org.graalvm.word.WordBase> T readWord(Object object, int offset, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.WordBase offset, byte val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, char val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, short val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, int val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, long val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, float val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, double val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.WordBase val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, Object val, org.graalvm.word.LocationIdentity locationIdentity)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.WordBase val, org.graalvm.word.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, org.graalvm.word.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, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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 <T extends org.graalvm.word.WordBase> T readWord(Object object, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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 <T extends org.graalvm.word.WordBase> T 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, org.graalvm.word.WordBase offset, byte val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, char val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, short val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, int val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, long val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, float val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, double val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, org.graalvm.word.WordBase val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.WordBase offset, Object val)
(object + offset). The offset is in bytes.
The offset is always treated as a SignedWord value. However, the static type is
WordBase to avoid the frequent casts of UnsignedWord 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, org.graalvm.word.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