public interface WordPointer
extends org.graalvm.word.PointerBase
UnsignedWord or SignedWord value.| Modifier and Type | Method and Description |
|---|---|
WordPointer |
addressOf(int index)
Computes the address of the array element with the specified index, treating the pointer as
an array of the C type.
|
WordPointer |
addressOf(org.graalvm.word.SignedWord index)
Computes the address of the array element with the specified index, treating the pointer as
an array of the C type.
|
<T extends org.graalvm.word.WordBase> |
read()
Reads the value at the pointer address.
|
<T extends org.graalvm.word.WordBase> |
read(int index)
Reads the value of the array element with the specified index, treating the pointer as an
array of the C type.
|
<T extends org.graalvm.word.WordBase> |
read(org.graalvm.word.SignedWord index)
Reads the value of the array element with the specified index, treating the pointer as an
array of the C type.
|
void |
write(int index,
org.graalvm.word.WordBase value)
Writes the value of the array element with the specified index, treating the pointer as an
array of the C type.
|
void |
write(org.graalvm.word.SignedWord index,
org.graalvm.word.WordBase value)
Writes the value of the array element with the specified index, treating the pointer as an
array of the C type.
|
void |
write(org.graalvm.word.WordBase value)
Writes the value at the pointer address.
|
<T extends org.graalvm.word.WordBase> T read()
<T extends org.graalvm.word.WordBase> T read(int index)
<T extends org.graalvm.word.WordBase> T read(org.graalvm.word.SignedWord index)
void write(org.graalvm.word.WordBase value)
void write(int index,
org.graalvm.word.WordBase value)
void write(org.graalvm.word.SignedWord index,
org.graalvm.word.WordBase value)
WordPointer addressOf(int index)
WordPointer addressOf(org.graalvm.word.SignedWord index)