Interface WordPointer
- All Superinterfaces:
ComparableWord, PointerBase, WordBase
A untyped C pointer to any machine-word-sized value, e.g., a pointer to another pointer or a
pointer to a
UnsignedWord or SignedWord value.- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionaddressOf(int index) Computes the address of the array element with the specified index, treating the pointer as an array of the C type.addressOf(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 WordBase>
Tread()Reads the value at the pointer address.<T extends WordBase>
Tread(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 WordBase>
Tread(SignedWord index) Reads the value of the array element with the specified index, treating the pointer as an array of the C type.voidWrites the value of the array element with the specified index, treating the pointer as an array of the C type.voidwrite(SignedWord index, WordBase value) Writes the value of the array element with the specified index, treating the pointer as an array of the C type.voidWrites the value at the pointer address.Methods inherited from interface ComparableWord
equal, notEqualMethods inherited from interface PointerBase
isNonNull, isNull
-
Method Details
-
read
-
read
Reads the value of the array element with the specified index, treating the pointer as an array of the C type.- Since:
- 19.0
-
read
Reads the value of the array element with the specified index, treating the pointer as an array of the C type.- Since:
- 19.0
-
write
-
write
Writes the value of the array element with the specified index, treating the pointer as an array of the C type.- Since:
- 19.0
-
write
Writes the value of the array element with the specified index, treating the pointer as an array of the C type.- Since:
- 19.0
-
addressOf
Computes the address of the array element with the specified index, treating the pointer as an array of the C type.- Since:
- 19.0
-
addressOf
Computes the address of the array element with the specified index, treating the pointer as an array of the C type.- Since:
- 19.0
-