Top Description Methods
org.graalvm.nativeimage.c.type

public Interface WordPointer

extends PointerBase
Annotations
@CPointerTo
nameOfCType:void*
Imports
org.graalvm.nativeimage.c.struct.CPointerTo, org.graalvm.word.PointerBase, .SignedWord, .UnsignedWord, .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 TypeMethod and Description
public 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.

public WordPointer
addressOf(SignedWord index)

Computes the address of the array element with the specified index, treating the pointer as an array of the C type.

public <T extends WordBase> T
read()

Reads the value at the pointer address.

public <T extends WordBase> T
read(int index)

Reads the value of the array element with the specified index, treating the pointer as an array of the C type.

public <T extends WordBase> T
read(SignedWord index)

Reads the value of the array element with the specified index, treating the pointer as an array of the C type.

public void
write(WordBase value)

Writes the value at the pointer address.

public void
write(int index, WordBase value)

Writes the value of the array element with the specified index, treating the pointer as an array of the C type.

public void
write(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.

Inherited from org.graalvm.word.PointerBase:
isNonNullisNull

Method Detail

addressOfback to summary
public 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.

Since
19.0
addressOfback to summary
public WordPointer addressOf(SignedWord index)

Computes the address of the array element with the specified index, treating the pointer as an array of the C type.

Since
19.0
readback to summary
public <T extends WordBase> T read()

Reads the value at the pointer address.

Since
19.0
readback to summary
public <T extends WordBase> T read(int index)

Reads the value of the array element with the specified index, treating the pointer as an array of the C type.

Since
19.0
readback to summary
public <T extends WordBase> T read(SignedWord index)

Reads the value of the array element with the specified index, treating the pointer as an array of the C type.

Since
19.0
writeback to summary
public void write(WordBase value)

Writes the value at the pointer address.

Since
19.0
writeback to summary
public void write(int index, WordBase value)

Writes the value of the array element with the specified index, treating the pointer as an array of the C type.

Since
19.0
writeback to summary
public void write(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.

Since
19.0