# ⬢ word 25.6.0-elide.4
Every page: [llms.txt](llms.txt), or all in one file: [llms-full.txt](llms-full.txt)
API reference for word.
## Packages
- [`org.graalvm.word`](org/graalvm/word/index.md): This package provides a low-level mechanism to use machine-word-sized values in Java.
## Types in `org.graalvm.word`
- [`ComparableWord`](org/graalvm/word/ComparableWord.md) (interface): A machine-word-sized value that can be compared for equality.
- [`LocationIdentity`](org/graalvm/word/LocationIdentity.md) (abstract class): Marker interface for location identities.
- [`Pointer`](org/graalvm/word/Pointer.md) (interface): Lowest-level memory access of native C memory.
- [`PointerBase`](org/graalvm/word/PointerBase.md) (interface): Marker interface for all word types that have the semantic of a pointer (but not necessarily all the memory access methods defined in Pointer).
- [`SignedWord`](org/graalvm/word/SignedWord.md) (interface): Represents a signed word-sized value.
- [`UnsignedWord`](org/graalvm/word/UnsignedWord.md) (interface): Represents an unsigned word-sized value.
- [`WordBase`](org/graalvm/word/WordBase.md) (interface): The root of the interface hierarchy for machine-word-sized values.
- [`WordFactory`](org/graalvm/word/WordFactory.md) (class): Provides factory method to create machine-word-sized values.
# ▣ org.graalvm.word
[word](index.md) · Every page: [llms.txt](llms.txt)
Package in word. Since 19.0.
This package provides a low-level mechanism to use machine-word-sized values in Java. The package can only be used in the context of native images or Graal snippets.
## Interfaces
- [`ComparableWord`](org/graalvm/word/ComparableWord.md): A machine-word-sized value that can be compared for equality.
- [`Pointer`](org/graalvm/word/Pointer.md): Lowest-level memory access of native C memory.
- [`PointerBase`](org/graalvm/word/PointerBase.md): Marker interface for all word types that have the semantic of a pointer (but not necessarily all the memory access methods defined in Pointer).
- [`SignedWord`](org/graalvm/word/SignedWord.md): Represents a signed word-sized value.
- [`UnsignedWord`](org/graalvm/word/UnsignedWord.md): Represents an unsigned word-sized value.
- [`WordBase`](org/graalvm/word/WordBase.md): The root of the interface hierarchy for machine-word-sized values.
## Classes
- [`LocationIdentity`](org/graalvm/word/LocationIdentity.md): Marker interface for location identities.
- [`WordFactory`](org/graalvm/word/WordFactory.md): Provides factory method to create machine-word-sized values.
# ◇ ComparableWord
[word](index.md) › [org.graalvm.word](org/graalvm/word/index.md) · Every page: [llms.txt](llms.txt)
Interface in [`org.graalvm.word`](org/graalvm/word/index.md). Since 19.0.
```java
public interface ComparableWord extends WordBase
```
Extends: [`WordBase`](org/graalvm/word/WordBase.md)
A machine-word-sized value that can be compared for equality.
## Methods
### equal(ComparableWord)
`boolean equal(ComparableWord val)`. Since 19.0. Compares this word with the specified value. Parameters: `val` `ComparableWord`: value to which this word is to be compared. Returns `boolean`: `this.rawValue() == val.rawValue()`. Cite: `org/graalvm/word/ComparableWord.html#equal(org.graalvm.word.ComparableWord)`
### notEqual(ComparableWord)
`boolean notEqual(ComparableWord val)`. Since 19.0. Compares this word with the specified value. Parameters: `val` `ComparableWord`: value to which this word is to be compared. Returns `boolean`: `this.rawValue() != val.rawValue()`. Cite: `org/graalvm/word/ComparableWord.html#notEqual(org.graalvm.word.ComparableWord)`
## Inherited members
- From interface [`WordBase`](org/graalvm/word/WordBase.md): [`equals`](org/graalvm/word/WordBase.md#equals%28java.lang.Object%29), [`rawValue`](org/graalvm/word/WordBase.md#rawValue%28%29)
# ◆ LocationIdentity
[word](index.md) › [org.graalvm.word](org/graalvm/word/index.md) · Every page: [llms.txt](llms.txt)
Abstract class in [`org.graalvm.word`](org/graalvm/word/index.md). Since 19.0.
```java
public abstract class LocationIdentity
```
Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `LocationIdentity`
Marker interface for location identities. A different location identity of two memory accesses guarantees that the two accesses do not interfere.
Clients of [`LocationIdentity`](org/graalvm/word/LocationIdentity.md) must use [`equals(Object)`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), not `==`, when comparing two [`LocationIdentity`](org/graalvm/word/LocationIdentity.md) values for equality. Likewise, they must not use [`java.util.IdentityHashMap`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/IdentityHashMap.html)s with [`LocationIdentity`](org/graalvm/word/LocationIdentity.md) values as keys.
## Fields
### ANY_LOCATION
`public static final LocationIdentity ANY_LOCATION`. Since 19.0. Indicates that the given location is the union of all possible mutable locations. A write to such a location kill all reads from mutable locations and a read from this location is killed by any write (except for initialization writes). Cite: `org/graalvm/word/LocationIdentity.html#ANY_LOCATION`
### INIT_LOCATION
`public static final LocationIdentity INIT_LOCATION`. Since 19.0. Location only allowed to be used for writes. Indicates that a completely new memory location is written. Kills no read. The previous value at the given location must be either uninitialized or null. Writes to this location do not need a GC pre-barrier. Cite: `org/graalvm/word/LocationIdentity.html#INIT_LOCATION`
## Constructors
### LocationIdentity()
`protected LocationIdentity()`. Since 19.0. Creates a new location identity. Subclasses are responsible to provide proper implementations of [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29) and [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29). Cite: `org/graalvm/word/LocationIdentity.html#()`
## Methods
### any()
`public static LocationIdentity any()`. Since 19.0. Indicates that the given location is the union of all possible mutable locations. A write to such a location kill all reads from mutable locations and a read from this location is killed by any write (except for initialization writes). Cite: `org/graalvm/word/LocationIdentity.html#any()`
### init()
`public static LocationIdentity init()`. Since 19.0. Location only allowed to be used for writes. Indicates that a completely new memory location is written. Kills no read. The previous value at the given location must be either uninitialized or null. Writes to this location do not need a GC pre-barrier. Cite: `org/graalvm/word/LocationIdentity.html#init()`
### isImmutable()
`public abstract boolean isImmutable()`. Since 19.0. Denotes a location is unchanging in all cases. Not that this is different than the Java notion of final which only requires definite assignment. Cite: `org/graalvm/word/LocationIdentity.html#isImmutable()`
### isMutable()
`public final boolean isMutable()`. Since 19.0. The inversion of `isImmutable`. Cite: `org/graalvm/word/LocationIdentity.html#isMutable()`
### isAny()
`public final boolean isAny()`. Since 19.0. Returns true if this location identity is `any`. Cite: `org/graalvm/word/LocationIdentity.html#isAny()`
### isInit()
`public final boolean isInit()`. Since 19.0. Returns true if this location identity is `init`. Cite: `org/graalvm/word/LocationIdentity.html#isInit()`
### isSingle()
`public final boolean isSingle()`. Since 19.0. Returns true if this location identity is not `any`. Cite: `org/graalvm/word/LocationIdentity.html#isSingle()`
### overlaps(LocationIdentity)
`public final boolean overlaps(LocationIdentity other)`. Since 19.0. Returns true if the memory slice denoted by this location identity may overlap with the provided other location identity. Cite: `org/graalvm/word/LocationIdentity.html#overlaps(org.graalvm.word.LocationIdentity)`
## Inherited members
- From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)
# ◇ Pointer
[word](index.md) › [org.graalvm.word](org/graalvm/word/index.md) · Every page: [llms.txt](llms.txt)
Interface in [`org.graalvm.word`](org/graalvm/word/index.md). Since 19.0.
```java
public interface Pointer extends UnsignedWord, PointerBase
```
Extends: [`UnsignedWord`](org/graalvm/word/UnsignedWord.md), [`PointerBase`](org/graalvm/word/PointerBase.md)
Lowest-level memory access of native C memory.
Do not use these methods to access Java objects. These methods access the raw memory without any null checks, read- or write barriers. Even when the VM uses compressed pointers, then readObject and writeObject methods access uncompressed pointers.
## Methods
### toObject()
`Object toObject()`. Since 19.0. Unsafe conversion of this Pointer to a Java language object. No correctness checks or type checks are performed. The caller must ensure that the Pointer contains a valid Java object that can i.e., processed by the garbage collector. Returns `Object`: this Pointer cast to Object. Cite: `org/graalvm/word/Pointer.html#toObject()`
### toObject(Class, boolean)
` T toObject(Class clazz, boolean nonNull)`. Since 23.1. Convert pointer to the type specified by the clazz argument. Parameters: `clazz` `Class`: the type to which to cast the pointer. `nonNull` `boolean`: true if the value cannot be null. Returns `T`: this Pointer cast to type T. Cite: `org/graalvm/word/Pointer.html#toObject(java.lang.Class,boolean)`
### toObjectNonNull()
`Object toObjectNonNull()`. Since 19.0. Unsafe conversion of this Pointer to a Java language object. No correctness checks or type checks are performed. The caller must ensure that the Pointer contains a valid Java object that can i.e., processed by the garbage collector and the Pointer does not contain 0. Returns `Object`: this Pointer cast to non-null Object. Cite: `org/graalvm/word/Pointer.html#toObjectNonNull()`
### readByte(WordBase, LocationIdentity)
`byte readByte(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `byte`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readByte(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readByte(int, LocationIdentity)
`byte readByte(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `byte`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readByte(int,org.graalvm.word.LocationIdentity)`
### readByte(WordBase)
`byte readByte(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `byte`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readByte(org.graalvm.word.WordBase)`
### readByte(int)
`byte readByte(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `byte`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readByte(int)`
### readChar(WordBase, LocationIdentity)
`char readChar(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `char`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readChar(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readChar(int, LocationIdentity)
`char readChar(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `char`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readChar(int,org.graalvm.word.LocationIdentity)`
### readChar(WordBase)
`char readChar(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `char`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readChar(org.graalvm.word.WordBase)`
### readChar(int)
`char readChar(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `char`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readChar(int)`
### readShort(WordBase, LocationIdentity)
`short readShort(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `short`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readShort(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readShort(int, LocationIdentity)
`short readShort(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `short`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readShort(int,org.graalvm.word.LocationIdentity)`
### readShort(WordBase)
`short readShort(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `short`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readShort(org.graalvm.word.WordBase)`
### readShort(int)
`short readShort(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `short`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readShort(int)`
### readInt(WordBase, LocationIdentity)
`int readInt(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `int`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readInt(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readInt(int, LocationIdentity)
`int readInt(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `int`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readInt(int,org.graalvm.word.LocationIdentity)`
### readInt(WordBase)
`int readInt(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `int`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readInt(org.graalvm.word.WordBase)`
### readInt(int)
`int readInt(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `int`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readInt(int)`
### readLong(WordBase, LocationIdentity)
`long readLong(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `long`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readLong(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readLong(int, LocationIdentity)
`long readLong(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `long`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readLong(int,org.graalvm.word.LocationIdentity)`
### readLong(WordBase)
`long readLong(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `long`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readLong(org.graalvm.word.WordBase)`
### readLong(int)
`long readLong(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `long`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readLong(int)`
### readFloat(WordBase, LocationIdentity)
`float readFloat(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `float`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readFloat(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readFloat(int, LocationIdentity)
`float readFloat(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `float`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readFloat(int,org.graalvm.word.LocationIdentity)`
### readFloat(WordBase)
`float readFloat(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `float`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readFloat(org.graalvm.word.WordBase)`
### readFloat(int)
`float readFloat(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `float`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readFloat(int)`
### readDouble(WordBase, LocationIdentity)
`double readDouble(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `double`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readDouble(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readDouble(int, LocationIdentity)
`double readDouble(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `double`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readDouble(int,org.graalvm.word.LocationIdentity)`
### readDouble(WordBase)
`double readDouble(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `double`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readDouble(org.graalvm.word.WordBase)`
### readDouble(int)
`double readDouble(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `double`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readDouble(int)`
### readWord(WordBase, LocationIdentity)
` T readWord(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `T`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readWord(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readWord(int, LocationIdentity)
` T readWord(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `T`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readWord(int,org.graalvm.word.LocationIdentity)`
### readWord(WordBase)
` T readWord(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `T`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readWord(org.graalvm.word.WordBase)`
### readWord(int)
` T readWord(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `T`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readWord(int)`
### readObject(WordBase, LocationIdentity)
`Object readObject(WordBase offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `Object`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readObject(org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### readObject(int, LocationIdentity)
`Object readObject(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `Object`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readObject(int,org.graalvm.word.LocationIdentity)`
### readObject(WordBase)
`Object readObject(WordBase offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. Returns `Object`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readObject(org.graalvm.word.WordBase)`
### readObject(int)
`Object readObject(int offset)`. Since 19.0. Reads the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. Returns `Object`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readObject(int)`
### readWordVolatile(int, LocationIdentity)
` T readWordVolatile(int offset, LocationIdentity locationIdentity)`. Since 19.0. Reads the memory at address `(this + offset)` in accordance with the volatile semantics. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `locationIdentity` `LocationIdentity`: the identity of the read. Returns `T`: the result of the memory access. Cite: `org/graalvm/word/Pointer.html#readWordVolatile(int,org.graalvm.word.LocationIdentity)`
### writeByte(WordBase, byte, LocationIdentity)
`void writeByte(WordBase offset, byte val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `byte`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeByte(org.graalvm.word.WordBase,byte,org.graalvm.word.LocationIdentity)`
### writeByte(int, byte, LocationIdentity)
`void writeByte(int offset, byte val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `byte`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeByte(int,byte,org.graalvm.word.LocationIdentity)`
### writeByte(WordBase, byte)
`void writeByte(WordBase offset, byte val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `byte`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeByte(org.graalvm.word.WordBase,byte)`
### writeByte(int, byte)
`void writeByte(int offset, byte val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `byte`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeByte(int,byte)`
### writeChar(WordBase, char, LocationIdentity)
`void writeChar(WordBase offset, char val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `char`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeChar(org.graalvm.word.WordBase,char,org.graalvm.word.LocationIdentity)`
### writeChar(int, char, LocationIdentity)
`void writeChar(int offset, char val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `char`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeChar(int,char,org.graalvm.word.LocationIdentity)`
### writeChar(WordBase, char)
`void writeChar(WordBase offset, char val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `char`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeChar(org.graalvm.word.WordBase,char)`
### writeChar(int, char)
`void writeChar(int offset, char val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `char`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeChar(int,char)`
### writeShort(WordBase, short, LocationIdentity)
`void writeShort(WordBase offset, short val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `short`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeShort(org.graalvm.word.WordBase,short,org.graalvm.word.LocationIdentity)`
### writeShort(int, short, LocationIdentity)
`void writeShort(int offset, short val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `short`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeShort(int,short,org.graalvm.word.LocationIdentity)`
### writeShort(WordBase, short)
`void writeShort(WordBase offset, short val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `short`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeShort(org.graalvm.word.WordBase,short)`
### writeShort(int, short)
`void writeShort(int offset, short val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `short`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeShort(int,short)`
### writeInt(WordBase, int, LocationIdentity)
`void writeInt(WordBase offset, int val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `int`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeInt(org.graalvm.word.WordBase,int,org.graalvm.word.LocationIdentity)`
### writeInt(int, int, LocationIdentity)
`void writeInt(int offset, int val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `int`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeInt(int,int,org.graalvm.word.LocationIdentity)`
### writeInt(WordBase, int)
`void writeInt(WordBase offset, int val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `int`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeInt(org.graalvm.word.WordBase,int)`
### writeInt(int, int)
`void writeInt(int offset, int val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `int`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeInt(int,int)`
### writeLong(WordBase, long, LocationIdentity)
`void writeLong(WordBase offset, long val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `long`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeLong(org.graalvm.word.WordBase,long,org.graalvm.word.LocationIdentity)`
### writeLong(int, long, LocationIdentity)
`void writeLong(int offset, long val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `long`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeLong(int,long,org.graalvm.word.LocationIdentity)`
### writeLong(WordBase, long)
`void writeLong(WordBase offset, long val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `long`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeLong(org.graalvm.word.WordBase,long)`
### writeLong(int, long)
`void writeLong(int offset, long val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `long`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeLong(int,long)`
### writeFloat(WordBase, float, LocationIdentity)
`void writeFloat(WordBase offset, float val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `float`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeFloat(org.graalvm.word.WordBase,float,org.graalvm.word.LocationIdentity)`
### writeFloat(int, float, LocationIdentity)
`void writeFloat(int offset, float val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `float`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeFloat(int,float,org.graalvm.word.LocationIdentity)`
### writeFloat(WordBase, float)
`void writeFloat(WordBase offset, float val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `float`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeFloat(org.graalvm.word.WordBase,float)`
### writeFloat(int, float)
`void writeFloat(int offset, float val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `float`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeFloat(int,float)`
### writeDouble(WordBase, double, LocationIdentity)
`void writeDouble(WordBase offset, double val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `double`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeDouble(org.graalvm.word.WordBase,double,org.graalvm.word.LocationIdentity)`
### writeDouble(int, double, LocationIdentity)
`void writeDouble(int offset, double val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `double`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeDouble(int,double,org.graalvm.word.LocationIdentity)`
### writeDouble(WordBase, double)
`void writeDouble(WordBase offset, double val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `double`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeDouble(org.graalvm.word.WordBase,double)`
### writeDouble(int, double)
`void writeDouble(int offset, double val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `double`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeDouble(int,double)`
### writeWord(WordBase, WordBase, LocationIdentity)
`void writeWord(WordBase offset, WordBase val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `WordBase`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeWord(org.graalvm.word.WordBase,org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### writeWord(int, WordBase, LocationIdentity)
`void writeWord(int offset, WordBase val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `WordBase`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeWord(int,org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### writeWord(WordBase, WordBase)
`void writeWord(WordBase offset, WordBase val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `WordBase`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeWord(org.graalvm.word.WordBase,org.graalvm.word.WordBase)`
### writeWord(int, WordBase)
`void writeWord(int offset, WordBase val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `WordBase`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeWord(int,org.graalvm.word.WordBase)`
### initializeLong(WordBase, long, LocationIdentity)
`void initializeLong(WordBase offset, long val, LocationIdentity locationIdentity)`. Since 19.0. Initializes the memory at address `(this + offset)`. Both the base address and offset are in bytes. The memory must be uninitialized or zero prior to this operation. 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `long`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#initializeLong(org.graalvm.word.WordBase,long,org.graalvm.word.LocationIdentity)`
### initializeLong(int, long, LocationIdentity)
`void initializeLong(int offset, long val, LocationIdentity locationIdentity)`. Since 19.0. Initializes the memory at address `(this + offset)`. Both the base address and offset are in bytes. The memory must be uninitialized or zero prior to this operation. Parameters: `offset` `int`: the signed offset for the memory access. `val` `long`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#initializeLong(int,long,org.graalvm.word.LocationIdentity)`
### writeObject(WordBase, Object, LocationIdentity)
`void writeObject(WordBase offset, Object val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `Object`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeObject(org.graalvm.word.WordBase,java.lang.Object,org.graalvm.word.LocationIdentity)`
### writeObject(int, Object, LocationIdentity)
`void writeObject(int offset, Object val, LocationIdentity locationIdentity)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `Object`: the value to be written to memory. `locationIdentity` `LocationIdentity`: the identity of the write. Cite: `org/graalvm/word/Pointer.html#writeObject(int,java.lang.Object,org.graalvm.word.LocationIdentity)`
### writeObject(WordBase, Object)
`void writeObject(WordBase offset, Object val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `val` `Object`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeObject(org.graalvm.word.WordBase,java.lang.Object)`
### writeObject(int, Object)
`void writeObject(int offset, Object val)`. Since 19.0. Writes the memory at address `(this + offset)`. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `Object`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeObject(int,java.lang.Object)`
### compareAndSwapInt(WordBase, int, …)
`int compareAndSwapInt(WordBase offset, int expectedValue, int newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `expectedValue` `int`: the expected current value at the memory address. `newValue` `int`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `int`: The value that was read for comparison, which is `expectedValue` if the exchange was performed. Cite: `org/graalvm/word/Pointer.html#compareAndSwapInt(org.graalvm.word.WordBase,int,int,org.graalvm.word.LocationIdentity)`
### compareAndSwapInt(int, int, …)
`int compareAndSwapInt(int offset, int expectedValue, int newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `expectedValue` `int`: the expected current value at the memory address. `newValue` `int`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `int`: The value that was read for comparison, which is `expectedValue` if the exchange was performed. Cite: `org/graalvm/word/Pointer.html#compareAndSwapInt(int,int,int,org.graalvm.word.LocationIdentity)`
### compareAndSwapLong(WordBase, long, …)
`long compareAndSwapLong(WordBase offset, long expectedValue, long newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `expectedValue` `long`: the expected current value at the memory address. `newValue` `long`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `long`: The value that was read for comparison, which is `expectedValue` if the exchange was performed. Cite: `org/graalvm/word/Pointer.html#compareAndSwapLong(org.graalvm.word.WordBase,long,long,org.graalvm.word.LocationIdentity)`
### compareAndSwapLong(int, long, …)
`long compareAndSwapLong(int offset, long expectedValue, long newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `expectedValue` `long`: the expected current value at the memory address. `newValue` `long`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `long`: The value that was read for comparison, which is `expectedValue` if the exchange was performed. Cite: `org/graalvm/word/Pointer.html#compareAndSwapLong(int,long,long,org.graalvm.word.LocationIdentity)`
### compareAndSwapWord(WordBase, T, …)
` T compareAndSwapWord(WordBase offset, T expectedValue, T newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `expectedValue` `T`: the expected current value at the memory address. `newValue` `T`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `T`: The value that was read for comparison, which is `expectedValue` if the exchange was performed. Cite: `org/graalvm/word/Pointer.html#compareAndSwapWord(org.graalvm.word.WordBase,T,T,org.graalvm.word.LocationIdentity)`
### compareAndSwapWord(int, T, …)
` T compareAndSwapWord(int offset, T expectedValue, T newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `expectedValue` `T`: the expected current value at the memory address. `newValue` `T`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `T`: The value that was read for comparison, which is `expectedValue` if the exchange was performed. Cite: `org/graalvm/word/Pointer.html#compareAndSwapWord(int,T,T,org.graalvm.word.LocationIdentity)`
### compareAndSwapObject(WordBase, Object, …)
`Object compareAndSwapObject(WordBase offset, Object expectedValue, Object newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `expectedValue` `Object`: the expected current value at the memory address. `newValue` `Object`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `Object`: The value that was read for comparison, which is `expectedValue` if the exchange was performed. Cite: `org/graalvm/word/Pointer.html#compareAndSwapObject(org.graalvm.word.WordBase,java.lang.Object,java.lang.Object,org.graalvm.word.LocationIdentity)`
### compareAndSwapObject(int, Object, …)
`Object compareAndSwapObject(int offset, Object expectedValue, Object newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `expectedValue` `Object`: the expected current value at the memory address. `newValue` `Object`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `Object`: The value that was read for comparison, which is `expectedValue` if the exchange was performed. Cite: `org/graalvm/word/Pointer.html#compareAndSwapObject(int,java.lang.Object,java.lang.Object,org.graalvm.word.LocationIdentity)`
### logicCompareAndSwapInt(WordBase, int, …)
`boolean logicCompareAndSwapInt(WordBase offset, int expectedValue, int newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `expectedValue` `int`: the expected current value at the memory address. `newValue` `int`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `boolean`: `true` if successful. False return indicates that the actual value was not equal to the expected value. Cite: `org/graalvm/word/Pointer.html#logicCompareAndSwapInt(org.graalvm.word.WordBase,int,int,org.graalvm.word.LocationIdentity)`
### logicCompareAndSwapInt(int, int, …)
`boolean logicCompareAndSwapInt(int offset, int expectedValue, int newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `expectedValue` `int`: the expected current value at the memory address. `newValue` `int`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `boolean`: `true` if successful. False return indicates that the actual value was not equal to the expected value. Cite: `org/graalvm/word/Pointer.html#logicCompareAndSwapInt(int,int,int,org.graalvm.word.LocationIdentity)`
### logicCompareAndSwapLong(WordBase, long, …)
`boolean logicCompareAndSwapLong(WordBase offset, long expectedValue, long newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `expectedValue` `long`: the expected current value at the memory address. `newValue` `long`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `boolean`: `true` if successful. False return indicates that the actual value was not equal to the expected value. Cite: `org/graalvm/word/Pointer.html#logicCompareAndSwapLong(org.graalvm.word.WordBase,long,long,org.graalvm.word.LocationIdentity)`
### logicCompareAndSwapLong(int, long, …)
`boolean logicCompareAndSwapLong(int offset, long expectedValue, long newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `expectedValue` `long`: the expected current value at the memory address. `newValue` `long`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `boolean`: `true` if successful. False return indicates that the actual value was not equal to the expected value. Cite: `org/graalvm/word/Pointer.html#logicCompareAndSwapLong(int,long,long,org.graalvm.word.LocationIdentity)`
### logicCompareAndSwapWord(WordBase, WordBase, …)
`boolean logicCompareAndSwapWord(WordBase offset, WordBase expectedValue, WordBase newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `expectedValue` `WordBase`: the expected current value at the memory address. `newValue` `WordBase`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `boolean`: `true` if successful. False return indicates that the actual value was not equal to the expected value. Cite: `org/graalvm/word/Pointer.html#logicCompareAndSwapWord(org.graalvm.word.WordBase,org.graalvm.word.WordBase,org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### logicCompareAndSwapWord(int, WordBase, …)
`boolean logicCompareAndSwapWord(int offset, WordBase expectedValue, WordBase newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `expectedValue` `WordBase`: the expected current value at the memory address. `newValue` `WordBase`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `boolean`: `true` if successful. False return indicates that the actual value was not equal to the expected value. Cite: `org/graalvm/word/Pointer.html#logicCompareAndSwapWord(int,org.graalvm.word.WordBase,org.graalvm.word.WordBase,org.graalvm.word.LocationIdentity)`
### logicCompareAndSwapObject(WordBase, Object, …)
`boolean logicCompareAndSwapObject(WordBase offset, Object expectedValue, Object newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are 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). Parameters: `offset` `WordBase`: the signed offset for the memory access. `expectedValue` `Object`: the expected current value at the memory address. `newValue` `Object`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `boolean`: `true` if successful. False return indicates that the actual value was not equal to the expected value. Cite: `org/graalvm/word/Pointer.html#logicCompareAndSwapObject(org.graalvm.word.WordBase,java.lang.Object,java.lang.Object,org.graalvm.word.LocationIdentity)`
### logicCompareAndSwapObject(int, Object, …)
`boolean logicCompareAndSwapObject(int offset, Object expectedValue, Object newValue, LocationIdentity locationIdentity)`. Since 19.0. In a single atomic step, compares the memory at address `(this + offset)` to the expected value, and if equal, exchanges it for the new value. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `expectedValue` `Object`: the expected current value at the memory address. `newValue` `Object`: the new value for the atomic exchange. `locationIdentity` `LocationIdentity`: the identity of the memory location. Returns `boolean`: `true` if successful. False return indicates that the actual value was not equal to the expected value. Cite: `org/graalvm/word/Pointer.html#logicCompareAndSwapObject(int,java.lang.Object,java.lang.Object,org.graalvm.word.LocationIdentity)`
### writeWordVolatile(int, WordBase)
`void writeWordVolatile(int offset, WordBase val)`. Since 19.0. Writes the memory at address `(this + offset)` in accordance with the volatile semantics. Both the base address and offset are in bytes. Parameters: `offset` `int`: the signed offset for the memory access. `val` `WordBase`: the value to be written to memory. Cite: `org/graalvm/word/Pointer.html#writeWordVolatile(int,org.graalvm.word.WordBase)`
### add(UnsignedWord)
`Pointer add(UnsignedWord val)`. Since 19.0. Returns a Pointer whose value is `(this + val)`. Parameters: `val` `UnsignedWord`: value to be added to this Pointer. Returns `Pointer`: `this + val`. Overrides `add()`. Cite: `org/graalvm/word/Pointer.html#add(org.graalvm.word.UnsignedWord)`
### add(int)
`Pointer add(int val)`. Since 19.0. Returns a Pointer whose value is `(this + val)`. Parameters: `val` `int`: value to be added to this Pointer. Returns `Pointer`: `this + val`. Overrides `add()`. Cite: `org/graalvm/word/Pointer.html#add(int)`
### subtract(UnsignedWord)
`Pointer subtract(UnsignedWord val)`. Since 19.0. Returns a Pointer whose value is `(this - val)`. Parameters: `val` `UnsignedWord`: value to be subtracted from this Pointer. Returns `Pointer`: `this - val`. Overrides `subtract()`. Cite: `org/graalvm/word/Pointer.html#subtract(org.graalvm.word.UnsignedWord)`
### subtract(int)
`Pointer subtract(int val)`. Since 19.0. Returns a Pointer whose value is `(this - val)`. Parameters: `val` `int`: value to be subtracted from this Pointer. Returns `Pointer`: `this - val`. Overrides `subtract()`. Cite: `org/graalvm/word/Pointer.html#subtract(int)`
### and(UnsignedWord)
`Pointer and(UnsignedWord val)`. Since 19.0. Returns a Pointer whose value is `(this & val)`. Parameters: `val` `UnsignedWord`: value to be AND'ed with this Pointer. Returns `Pointer`: `this & val`. Overrides `and()`. Cite: `org/graalvm/word/Pointer.html#and(org.graalvm.word.UnsignedWord)`
### and(int)
`Pointer and(int val)`. Since 19.0. Returns a Pointer whose value is `(this & val)`. Parameters: `val` `int`: value to be AND'ed with this Pointer. Returns `Pointer`: `this & val`. Overrides `and()`. Cite: `org/graalvm/word/Pointer.html#and(int)`
### or(UnsignedWord)
`Pointer or(UnsignedWord val)`. Since 19.0. Returns a Pointer whose value is `(this | val)`. Parameters: `val` `UnsignedWord`: value to be OR'ed with this Pointer. Returns `Pointer`: `this | val`. Overrides `or()`. Cite: `org/graalvm/word/Pointer.html#or(org.graalvm.word.UnsignedWord)`
### or(int)
`Pointer or(int val)`. Since 19.0. Returns a Pointer whose value is `(this | val)`. Parameters: `val` `int`: value to be OR'ed with this Pointer. Returns `Pointer`: `this | val`. Overrides `or()`. Cite: `org/graalvm/word/Pointer.html#or(int)`
## Inherited members
- From interface [`UnsignedWord`](org/graalvm/word/UnsignedWord.md): [`aboveOrEqual`](org/graalvm/word/UnsignedWord.md#aboveOrEqual%28int%29), [`aboveOrEqual`](org/graalvm/word/UnsignedWord.md#aboveOrEqual%28org.graalvm.word.UnsignedWord%29), [`aboveThan`](org/graalvm/word/UnsignedWord.md#aboveThan%28int%29), [`aboveThan`](org/graalvm/word/UnsignedWord.md#aboveThan%28org.graalvm.word.UnsignedWord%29), [`belowOrEqual`](org/graalvm/word/UnsignedWord.md#belowOrEqual%28int%29), [`belowOrEqual`](org/graalvm/word/UnsignedWord.md#belowOrEqual%28org.graalvm.word.UnsignedWord%29), [`belowThan`](org/graalvm/word/UnsignedWord.md#belowThan%28int%29), [`belowThan`](org/graalvm/word/UnsignedWord.md#belowThan%28org.graalvm.word.UnsignedWord%29), [`equal`](org/graalvm/word/UnsignedWord.md#equal%28int%29), [`equal`](org/graalvm/word/UnsignedWord.md#equal%28org.graalvm.word.UnsignedWord%29), [`multiply`](org/graalvm/word/UnsignedWord.md#multiply%28int%29), [`multiply`](org/graalvm/word/UnsignedWord.md#multiply%28org.graalvm.word.UnsignedWord%29), [`not`](org/graalvm/word/UnsignedWord.md#not%28%29), [`notEqual`](org/graalvm/word/UnsignedWord.md#notEqual%28int%29), [`notEqual`](org/graalvm/word/UnsignedWord.md#notEqual%28org.graalvm.word.UnsignedWord%29), [`shiftLeft`](org/graalvm/word/UnsignedWord.md#shiftLeft%28int%29), [`shiftLeft`](org/graalvm/word/UnsignedWord.md#shiftLeft%28org.graalvm.word.UnsignedWord%29), [`unsignedDivide`](org/graalvm/word/UnsignedWord.md#unsignedDivide%28int%29), [`unsignedDivide`](org/graalvm/word/UnsignedWord.md#unsignedDivide%28org.graalvm.word.UnsignedWord%29), [`unsignedRemainder`](org/graalvm/word/UnsignedWord.md#unsignedRemainder%28int%29), [`unsignedRemainder`](org/graalvm/word/UnsignedWord.md#unsignedRemainder%28org.graalvm.word.UnsignedWord%29), [`unsignedShiftRight`](org/graalvm/word/UnsignedWord.md#unsignedShiftRight%28int%29), [`unsignedShiftRight`](org/graalvm/word/UnsignedWord.md#unsignedShiftRight%28org.graalvm.word.UnsignedWord%29), [`xor`](org/graalvm/word/UnsignedWord.md#xor%28int%29), [`xor`](org/graalvm/word/UnsignedWord.md#xor%28org.graalvm.word.UnsignedWord%29)
- From interface [`PointerBase`](org/graalvm/word/PointerBase.md): [`isNonNull`](org/graalvm/word/PointerBase.md#isNonNull%28%29), [`isNull`](org/graalvm/word/PointerBase.md#isNull%28%29)
- From interface [`ComparableWord`](org/graalvm/word/ComparableWord.md): [`equal`](org/graalvm/word/ComparableWord.md#equal%28org.graalvm.word.ComparableWord%29), [`notEqual`](org/graalvm/word/ComparableWord.md#notEqual%28org.graalvm.word.ComparableWord%29)
- From interface [`WordBase`](org/graalvm/word/WordBase.md): [`equals`](org/graalvm/word/WordBase.md#equals%28java.lang.Object%29), [`rawValue`](org/graalvm/word/WordBase.md#rawValue%28%29)
# ◇ PointerBase
[word](index.md) › [org.graalvm.word](org/graalvm/word/index.md) · Every page: [llms.txt](llms.txt)
Interface in [`org.graalvm.word`](org/graalvm/word/index.md). Since 19.0.
```java
public interface PointerBase extends ComparableWord
```
Extends: [`ComparableWord`](org/graalvm/word/ComparableWord.md)
Marker interface for all [`word types`](org/graalvm/word/WordBase.md) that have the semantic of a pointer (but not necessarily all the memory access methods defined in [`Pointer`](org/graalvm/word/Pointer.md)).
## Methods
### isNull()
`boolean isNull()`. Since 19.0. Returns true if this pointer is the `null pointer`. Cite: `org/graalvm/word/PointerBase.html#isNull()`
### isNonNull()
`boolean isNonNull()`. Since 19.0. Returns true if this pointer is not the `null pointer`. Cite: `org/graalvm/word/PointerBase.html#isNonNull()`
## Inherited members
- From interface [`ComparableWord`](org/graalvm/word/ComparableWord.md): [`equal`](org/graalvm/word/ComparableWord.md#equal%28org.graalvm.word.ComparableWord%29), [`notEqual`](org/graalvm/word/ComparableWord.md#notEqual%28org.graalvm.word.ComparableWord%29)
- From interface [`WordBase`](org/graalvm/word/WordBase.md): [`equals`](org/graalvm/word/WordBase.md#equals%28java.lang.Object%29), [`rawValue`](org/graalvm/word/WordBase.md#rawValue%28%29)
# ◇ SignedWord
[word](index.md) › [org.graalvm.word](org/graalvm/word/index.md) · Every page: [llms.txt](llms.txt)
Interface in [`org.graalvm.word`](org/graalvm/word/index.md). Since 19.0.
```java
public interface SignedWord extends ComparableWord
```
Extends: [`ComparableWord`](org/graalvm/word/ComparableWord.md)
Represents a signed word-sized value.
## Methods
### add(SignedWord)
`SignedWord add(SignedWord val)`. Since 19.0. Returns a Signed whose value is `(this + val)`. Parameters: `val` `SignedWord`: value to be added to this Signed. Returns `SignedWord`: `this + val`. Cite: `org/graalvm/word/SignedWord.html#add(org.graalvm.word.SignedWord)`
### add(int)
`SignedWord add(int val)`. Since 19.0. Returns a Signed whose value is `(this + val)`. Parameters: `val` `int`: value to be added to this Signed. Returns `SignedWord`: `this + val`. Cite: `org/graalvm/word/SignedWord.html#add(int)`
### subtract(SignedWord)
`SignedWord subtract(SignedWord val)`. Since 19.0. Returns a Signed whose value is `(this - val)`. Parameters: `val` `SignedWord`: value to be subtracted from this Signed. Returns `SignedWord`: `this - val`. Cite: `org/graalvm/word/SignedWord.html#subtract(org.graalvm.word.SignedWord)`
### subtract(int)
`SignedWord subtract(int val)`. Since 19.0. Returns a Signed whose value is `(this - val)`. Parameters: `val` `int`: value to be subtracted from this Signed. Returns `SignedWord`: `this - val`. Cite: `org/graalvm/word/SignedWord.html#subtract(int)`
### multiply(SignedWord)
`SignedWord multiply(SignedWord val)`. Since 19.0. Returns a Signed whose value is `(this * val)`. Parameters: `val` `SignedWord`: value to be multiplied by this Signed. Returns `SignedWord`: `this * val`. Cite: `org/graalvm/word/SignedWord.html#multiply(org.graalvm.word.SignedWord)`
### multiply(int)
`SignedWord multiply(int val)`. Since 19.0. Returns a Signed whose value is `(this * val)`. Parameters: `val` `int`: value to be multiplied by this Signed. Returns `SignedWord`: `this * val`. Cite: `org/graalvm/word/SignedWord.html#multiply(int)`
### signedDivide(SignedWord)
`SignedWord signedDivide(SignedWord val)`. Since 19.0. Returns a Signed whose value is `(this / val)`. Parameters: `val` `SignedWord`: value by which this Signed is to be divided. Returns `SignedWord`: `this / val`. Cite: `org/graalvm/word/SignedWord.html#signedDivide(org.graalvm.word.SignedWord)`
### signedDivide(int)
`SignedWord signedDivide(int val)`. Since 19.0. Returns a Signed whose value is `(this / val)`. Parameters: `val` `int`: value by which this Signed is to be divided. Returns `SignedWord`: `this / val`. Cite: `org/graalvm/word/SignedWord.html#signedDivide(int)`
### signedRemainder(SignedWord)
`SignedWord signedRemainder(SignedWord val)`. Since 19.0. Returns a Signed whose value is `(this % val)`. Parameters: `val` `SignedWord`: value by which this Signed is to be divided, and the remainder computed. Returns `SignedWord`: `this % val`. Cite: `org/graalvm/word/SignedWord.html#signedRemainder(org.graalvm.word.SignedWord)`
### signedRemainder(int)
`SignedWord signedRemainder(int val)`. Since 19.0. Returns a Signed whose value is `(this % val)`. Parameters: `val` `int`: value by which this Signed is to be divided, and the remainder computed. Returns `SignedWord`: `this % val`. Cite: `org/graalvm/word/SignedWord.html#signedRemainder(int)`
### shiftLeft(UnsignedWord)
`SignedWord shiftLeft(UnsignedWord n)`. Since 19.0. Returns a Signed whose value is `(this << n)`. Parameters: `n` `UnsignedWord`: shift distance, in bits. Returns `SignedWord`: `this << n`. Cite: `org/graalvm/word/SignedWord.html#shiftLeft(org.graalvm.word.UnsignedWord)`
### shiftLeft(int)
`SignedWord shiftLeft(int n)`. Since 19.0. Returns a Signed whose value is `(this << n)`. Parameters: `n` `int`: shift distance, in bits. Returns `SignedWord`: `this << n`. Cite: `org/graalvm/word/SignedWord.html#shiftLeft(int)`
### signedShiftRight(UnsignedWord)
`SignedWord signedShiftRight(UnsignedWord n)`. Since 19.0. Returns a Signed whose value is `(this >> n)`. Sign extension is performed. Parameters: `n` `UnsignedWord`: shift distance, in bits. Returns `SignedWord`: `this >> n`. Cite: `org/graalvm/word/SignedWord.html#signedShiftRight(org.graalvm.word.UnsignedWord)`
### signedShiftRight(int)
`SignedWord signedShiftRight(int n)`. Since 19.0. Returns a Signed whose value is `(this >> n)`. Sign extension is performed. Parameters: `n` `int`: shift distance, in bits. Returns `SignedWord`: `this >> n`. Cite: `org/graalvm/word/SignedWord.html#signedShiftRight(int)`
### and(SignedWord)
`SignedWord and(SignedWord val)`. Since 19.0. Returns a Signed whose value is `(this & val)`. (This method returns a negative Signed if and only if this and val are both negative.). Parameters: `val` `SignedWord`: value to be AND'ed with this Signed. Returns `SignedWord`: `this & val`. Cite: `org/graalvm/word/SignedWord.html#and(org.graalvm.word.SignedWord)`
### and(int)
`SignedWord and(int val)`. Since 19.0. Returns a Signed whose value is `(this & val)`. (This method returns a negative Signed if and only if this and val are both negative.). Parameters: `val` `int`: value to be AND'ed with this Signed. Returns `SignedWord`: `this & val`. Cite: `org/graalvm/word/SignedWord.html#and(int)`
### or(SignedWord)
`SignedWord or(SignedWord val)`. Since 19.0. Returns a Signed whose value is `(this | val)`. (This method returns a negative Signed if and only if either this or val is negative.). Parameters: `val` `SignedWord`: value to be OR'ed with this Signed. Returns `SignedWord`: `this | val`. Cite: `org/graalvm/word/SignedWord.html#or(org.graalvm.word.SignedWord)`
### or(int)
`SignedWord or(int val)`. Since 19.0. Returns a Signed whose value is `(this | val)`. (This method returns a negative Signed if and only if either this or val is negative.). Parameters: `val` `int`: value to be OR'ed with this Signed. Returns `SignedWord`: `this | val`. Cite: `org/graalvm/word/SignedWord.html#or(int)`
### xor(SignedWord)
`SignedWord xor(SignedWord val)`. Since 19.0. Returns a Signed whose value is `(this ^ val)`. (This method returns a negative Signed if and only if exactly one of this and val are negative.). Parameters: `val` `SignedWord`: value to be XOR'ed with this Signed. Returns `SignedWord`: `this ^ val`. Cite: `org/graalvm/word/SignedWord.html#xor(org.graalvm.word.SignedWord)`
### xor(int)
`SignedWord xor(int val)`. Since 19.0. Returns a Signed whose value is `(this ^ val)`. (This method returns a negative Signed if and only if exactly one of this and val are negative.). Parameters: `val` `int`: value to be XOR'ed with this Signed. Returns `SignedWord`: `this ^ val`. Cite: `org/graalvm/word/SignedWord.html#xor(int)`
### not()
`SignedWord not()`. Since 19.0. Returns a Signed whose value is `(~this)`. (This method returns a negative value if and only if this Signed is non-negative.). Returns `SignedWord`: `~this`. Cite: `org/graalvm/word/SignedWord.html#not()`
### equal(SignedWord)
`boolean equal(SignedWord val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `SignedWord`: value to which this Signed is to be compared. Returns `boolean`: `this == val`. Cite: `org/graalvm/word/SignedWord.html#equal(org.graalvm.word.SignedWord)`
### equal(int)
`boolean equal(int val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `int`: value to which this Signed is to be compared. Returns `boolean`: `this == val`. Cite: `org/graalvm/word/SignedWord.html#equal(int)`
### notEqual(SignedWord)
`boolean notEqual(SignedWord val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `SignedWord`: value to which this Signed is to be compared. Returns `boolean`: `this != val`. Cite: `org/graalvm/word/SignedWord.html#notEqual(org.graalvm.word.SignedWord)`
### notEqual(int)
`boolean notEqual(int val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `int`: value to which this Signed is to be compared. Returns `boolean`: `this != val`. Cite: `org/graalvm/word/SignedWord.html#notEqual(int)`
### lessThan(SignedWord)
`boolean lessThan(SignedWord val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `SignedWord`: value to which this Signed is to be compared. Returns `boolean`: `this < val`. Cite: `org/graalvm/word/SignedWord.html#lessThan(org.graalvm.word.SignedWord)`
### lessThan(int)
`boolean lessThan(int val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `int`: value to which this Signed is to be compared. Returns `boolean`: `this < val`. Cite: `org/graalvm/word/SignedWord.html#lessThan(int)`
### lessOrEqual(SignedWord)
`boolean lessOrEqual(SignedWord val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `SignedWord`: value to which this Signed is to be compared. Returns `boolean`: `this <= val`. Cite: `org/graalvm/word/SignedWord.html#lessOrEqual(org.graalvm.word.SignedWord)`
### lessOrEqual(int)
`boolean lessOrEqual(int val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `int`: value to which this Signed is to be compared. Returns `boolean`: `this <= val`. Cite: `org/graalvm/word/SignedWord.html#lessOrEqual(int)`
### greaterThan(SignedWord)
`boolean greaterThan(SignedWord val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `SignedWord`: value to which this Signed is to be compared. Returns `boolean`: `this > val`. Cite: `org/graalvm/word/SignedWord.html#greaterThan(org.graalvm.word.SignedWord)`
### greaterThan(int)
`boolean greaterThan(int val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `int`: value to which this Signed is to be compared. Returns `boolean`: `this > val`. Cite: `org/graalvm/word/SignedWord.html#greaterThan(int)`
### greaterOrEqual(SignedWord)
`boolean greaterOrEqual(SignedWord val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `SignedWord`: value to which this Signed is to be compared. Returns `boolean`: `this >= val`. Cite: `org/graalvm/word/SignedWord.html#greaterOrEqual(org.graalvm.word.SignedWord)`
### greaterOrEqual(int)
`boolean greaterOrEqual(int val)`. Since 19.0. Compares this Signed with the specified value. Parameters: `val` `int`: value to which this Signed is to be compared. Returns `boolean`: `this >= val`. Cite: `org/graalvm/word/SignedWord.html#greaterOrEqual(int)`
## Inherited members
- From interface [`ComparableWord`](org/graalvm/word/ComparableWord.md): [`equal`](org/graalvm/word/ComparableWord.md#equal%28org.graalvm.word.ComparableWord%29), [`notEqual`](org/graalvm/word/ComparableWord.md#notEqual%28org.graalvm.word.ComparableWord%29)
- From interface [`WordBase`](org/graalvm/word/WordBase.md): [`equals`](org/graalvm/word/WordBase.md#equals%28java.lang.Object%29), [`rawValue`](org/graalvm/word/WordBase.md#rawValue%28%29)
# ◇ UnsignedWord
[word](index.md) › [org.graalvm.word](org/graalvm/word/index.md) · Every page: [llms.txt](llms.txt)
Interface in [`org.graalvm.word`](org/graalvm/word/index.md). Since 19.0.
```java
public interface UnsignedWord extends ComparableWord
```
Extends: [`ComparableWord`](org/graalvm/word/ComparableWord.md)
Represents an unsigned word-sized value.
## Methods
### add(UnsignedWord)
`UnsignedWord add(UnsignedWord val)`. Since 19.0. Returns a Unsigned whose value is `(this + val)`. Parameters: `val` `UnsignedWord`: value to be added to this Unsigned. Returns `UnsignedWord`: `this + val`. Cite: `org/graalvm/word/UnsignedWord.html#add(org.graalvm.word.UnsignedWord)`
### add(int)
`UnsignedWord add(int val)`. Since 19.0. Returns a Unsigned whose value is `(this + val)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to be added to this Unsigned. Returns `UnsignedWord`: `this + val`. Cite: `org/graalvm/word/UnsignedWord.html#add(int)`
### subtract(UnsignedWord)
`UnsignedWord subtract(UnsignedWord val)`. Since 19.0. Returns a Unsigned whose value is `(this - val)`. Parameters: `val` `UnsignedWord`: value to be subtracted from this Unsigned. Returns `UnsignedWord`: `this - val`. Cite: `org/graalvm/word/UnsignedWord.html#subtract(org.graalvm.word.UnsignedWord)`
### subtract(int)
`UnsignedWord subtract(int val)`. Since 19.0. Returns a Unsigned whose value is `(this - val)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to be subtracted from this Unsigned. Returns `UnsignedWord`: `this - val`. Cite: `org/graalvm/word/UnsignedWord.html#subtract(int)`
### multiply(UnsignedWord)
`UnsignedWord multiply(UnsignedWord val)`. Since 19.0. Returns a Unsigned whose value is `(this * val)`. Parameters: `val` `UnsignedWord`: value to be multiplied by this Unsigned. Returns `UnsignedWord`: `this * val`. Cite: `org/graalvm/word/UnsignedWord.html#multiply(org.graalvm.word.UnsignedWord)`
### multiply(int)
`UnsignedWord multiply(int val)`. Since 19.0. Returns a Unsigned whose value is `(this * val)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to be multiplied by this Unsigned. Returns `UnsignedWord`: `this * val`. Cite: `org/graalvm/word/UnsignedWord.html#multiply(int)`
### unsignedDivide(UnsignedWord)
`UnsignedWord unsignedDivide(UnsignedWord val)`. Since 19.0. Returns a Unsigned whose value is `(this / val)`. Parameters: `val` `UnsignedWord`: value by which this Unsigned is to be divided. Returns `UnsignedWord`: `this / val`. Cite: `org/graalvm/word/UnsignedWord.html#unsignedDivide(org.graalvm.word.UnsignedWord)`
### unsignedDivide(int)
`UnsignedWord unsignedDivide(int val)`. Since 19.0. Returns a Unsigned whose value is `(this / val)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value by which this Unsigned is to be divided. Returns `UnsignedWord`: `this / val`. Cite: `org/graalvm/word/UnsignedWord.html#unsignedDivide(int)`
### unsignedRemainder(UnsignedWord)
`UnsignedWord unsignedRemainder(UnsignedWord val)`. Since 19.0. Returns a Unsigned whose value is `(this % val)`. Parameters: `val` `UnsignedWord`: value by which this Unsigned is to be divided, and the remainder computed. Returns `UnsignedWord`: `this % val`. Cite: `org/graalvm/word/UnsignedWord.html#unsignedRemainder(org.graalvm.word.UnsignedWord)`
### unsignedRemainder(int)
`UnsignedWord unsignedRemainder(int val)`. Since 19.0. Returns a Unsigned whose value is `(this % val)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value by which this Unsigned is to be divided, and the remainder computed. Returns `UnsignedWord`: `this % val`. Cite: `org/graalvm/word/UnsignedWord.html#unsignedRemainder(int)`
### shiftLeft(UnsignedWord)
`UnsignedWord shiftLeft(UnsignedWord n)`. Since 19.0. Returns a Unsigned whose value is `(this << n)`. Parameters: `n` `UnsignedWord`: shift distance, in bits. Returns `UnsignedWord`: `this << n`. Cite: `org/graalvm/word/UnsignedWord.html#shiftLeft(org.graalvm.word.UnsignedWord)`
### shiftLeft(int)
`UnsignedWord shiftLeft(int n)`. Since 19.0. Returns a Unsigned whose value is `(this << n)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `n` `int`: shift distance, in bits. Returns `UnsignedWord`: `this << n`. Cite: `org/graalvm/word/UnsignedWord.html#shiftLeft(int)`
### unsignedShiftRight(UnsignedWord)
`UnsignedWord unsignedShiftRight(UnsignedWord n)`. Since 19.0. Returns a Unsigned whose value is `(this >>> n)`. No sign extension is performed. Parameters: `n` `UnsignedWord`: shift distance, in bits. Returns `UnsignedWord`: `this >> n`. Cite: `org/graalvm/word/UnsignedWord.html#unsignedShiftRight(org.graalvm.word.UnsignedWord)`
### unsignedShiftRight(int)
`UnsignedWord unsignedShiftRight(int n)`. Since 19.0. Returns a Unsigned whose value is `(this >>> n)`. No sign extension is performed. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `n` `int`: shift distance, in bits. Returns `UnsignedWord`: `this >> n`. Cite: `org/graalvm/word/UnsignedWord.html#unsignedShiftRight(int)`
### and(UnsignedWord)
`UnsignedWord and(UnsignedWord val)`. Since 19.0. Returns a Unsigned whose value is `(this & val)`. Parameters: `val` `UnsignedWord`: value to be AND'ed with this Unsigned. Returns `UnsignedWord`: `this & val`. Cite: `org/graalvm/word/UnsignedWord.html#and(org.graalvm.word.UnsignedWord)`
### and(int)
`UnsignedWord and(int val)`. Since 19.0. Returns a Unsigned whose value is `(this & val)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to be AND'ed with this Unsigned. Returns `UnsignedWord`: `this & val`. Cite: `org/graalvm/word/UnsignedWord.html#and(int)`
### or(UnsignedWord)
`UnsignedWord or(UnsignedWord val)`. Since 19.0. Returns a Unsigned whose value is `(this | val)`. Parameters: `val` `UnsignedWord`: value to be OR'ed with this Unsigned. Returns `UnsignedWord`: `this | val`. Cite: `org/graalvm/word/UnsignedWord.html#or(org.graalvm.word.UnsignedWord)`
### or(int)
`UnsignedWord or(int val)`. Since 19.0. Returns a Unsigned whose value is `(this | val)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to be OR'ed with this Unsigned. Returns `UnsignedWord`: `this | val`. Cite: `org/graalvm/word/UnsignedWord.html#or(int)`
### xor(UnsignedWord)
`UnsignedWord xor(UnsignedWord val)`. Since 19.0. Returns a Unsigned whose value is `(this ^ val)`. Parameters: `val` `UnsignedWord`: value to be XOR'ed with this Unsigned. Returns `UnsignedWord`: `this ^ val`. Cite: `org/graalvm/word/UnsignedWord.html#xor(org.graalvm.word.UnsignedWord)`
### xor(int)
`UnsignedWord xor(int val)`. Since 19.0. Returns a Unsigned whose value is `(this ^ val)`. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to be XOR'ed with this Unsigned. Returns `UnsignedWord`: `this ^ val`. Cite: `org/graalvm/word/UnsignedWord.html#xor(int)`
### not()
`UnsignedWord not()`. Since 19.0. Returns a Unsigned whose value is `(~this)`. Returns `UnsignedWord`: `~this`. Cite: `org/graalvm/word/UnsignedWord.html#not()`
### equal(UnsignedWord)
`boolean equal(UnsignedWord val)`. Since 19.0. Compares this Unsigned with the specified value. Parameters: `val` `UnsignedWord`: value to which this Unsigned is to be compared. Returns `boolean`: `this == val`. Cite: `org/graalvm/word/UnsignedWord.html#equal(org.graalvm.word.UnsignedWord)`
### equal(int)
`boolean equal(int val)`. Since 19.0. Compares this Unsigned with the specified value. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to which this Unsigned is to be compared. Returns `boolean`: `this == val`. Cite: `org/graalvm/word/UnsignedWord.html#equal(int)`
### notEqual(UnsignedWord)
`boolean notEqual(UnsignedWord val)`. Since 19.0. Compares this Unsigned with the specified value. Parameters: `val` `UnsignedWord`: value to which this Unsigned is to be compared. Returns `boolean`: `this != val`. Cite: `org/graalvm/word/UnsignedWord.html#notEqual(org.graalvm.word.UnsignedWord)`
### notEqual(int)
`boolean notEqual(int val)`. Since 19.0. Compares this Unsigned with the specified value. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to which this Unsigned is to be compared. Returns `boolean`: `this != val`. Cite: `org/graalvm/word/UnsignedWord.html#notEqual(int)`
### belowThan(UnsignedWord)
`boolean belowThan(UnsignedWord val)`. Since 19.0. Compares this Unsigned with the specified value. Parameters: `val` `UnsignedWord`: value to which this Unsigned is to be compared. Returns `boolean`: `this < val`. Cite: `org/graalvm/word/UnsignedWord.html#belowThan(org.graalvm.word.UnsignedWord)`
### belowThan(int)
`boolean belowThan(int val)`. Since 19.0. Compares this Unsigned with the specified value. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to which this Unsigned is to be compared. Returns `boolean`: `this < val`. Cite: `org/graalvm/word/UnsignedWord.html#belowThan(int)`
### belowOrEqual(UnsignedWord)
`boolean belowOrEqual(UnsignedWord val)`. Since 19.0. Compares this Unsigned with the specified value. Parameters: `val` `UnsignedWord`: value to which this Unsigned is to be compared. Returns `boolean`: `this <= val`. Cite: `org/graalvm/word/UnsignedWord.html#belowOrEqual(org.graalvm.word.UnsignedWord)`
### belowOrEqual(int)
`boolean belowOrEqual(int val)`. Since 19.0. Compares this Unsigned with the specified value. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to which this Unsigned is to be compared. Returns `boolean`: `this <= val`. Cite: `org/graalvm/word/UnsignedWord.html#belowOrEqual(int)`
### aboveThan(UnsignedWord)
`boolean aboveThan(UnsignedWord val)`. Since 19.0. Compares this Unsigned with the specified value. Parameters: `val` `UnsignedWord`: value to which this Unsigned is to be compared. Returns `boolean`: `this > val`. Cite: `org/graalvm/word/UnsignedWord.html#aboveThan(org.graalvm.word.UnsignedWord)`
### aboveThan(int)
`boolean aboveThan(int val)`. Since 19.0. Compares this Unsigned with the specified value. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to which this Unsigned is to be compared. Returns `boolean`: `this > val`. Cite: `org/graalvm/word/UnsignedWord.html#aboveThan(int)`
### aboveOrEqual(UnsignedWord)
`boolean aboveOrEqual(UnsignedWord val)`. Since 19.0. Compares this Unsigned with the specified value. Parameters: `val` `UnsignedWord`: value to which this Unsigned is to be compared. Returns `boolean`: `this >= val`. Cite: `org/graalvm/word/UnsignedWord.html#aboveOrEqual(org.graalvm.word.UnsignedWord)`
### aboveOrEqual(int)
`boolean aboveOrEqual(int val)`. Since 19.0. Compares this Unsigned with the specified value. Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands. Parameters: `val` `int`: value to which this Unsigned is to be compared. Returns `boolean`: `this >= val`. Cite: `org/graalvm/word/UnsignedWord.html#aboveOrEqual(int)`
## Inherited members
- From interface [`ComparableWord`](org/graalvm/word/ComparableWord.md): [`equal`](org/graalvm/word/ComparableWord.md#equal%28org.graalvm.word.ComparableWord%29), [`notEqual`](org/graalvm/word/ComparableWord.md#notEqual%28org.graalvm.word.ComparableWord%29)
- From interface [`WordBase`](org/graalvm/word/WordBase.md): [`equals`](org/graalvm/word/WordBase.md#equals%28java.lang.Object%29), [`rawValue`](org/graalvm/word/WordBase.md#rawValue%28%29)
# ◇ WordBase
[word](index.md) › [org.graalvm.word](org/graalvm/word/index.md) · Every page: [llms.txt](llms.txt)
Interface in [`org.graalvm.word`](org/graalvm/word/index.md). Since 19.0.
```java
public interface WordBase
```
The root of the interface hierarchy for machine-word-sized values. Word values must only be compared with `==` in code guaranteed not to be using boxed word values. In all other code, use `w1.rawValue() == w2.rawValue()` or [`ComparableWord.equal(ComparableWord)`](org/graalvm/word/ComparableWord.md#equal%28org.graalvm.word.ComparableWord%29).
## Methods
### rawValue()
`long rawValue()`. Since 19.0. Conversion to a Java primitive value. Cite: `org/graalvm/word/WordBase.html#rawValue()`
### equals(Object)
`@Deprecated boolean equals(Object o)`. Since 19.0. Deprecated. This is deprecated because of the easy to mistype name collision between `equals` and the other word based equality routines. In general, never statically call this method. Overrides `equals(java.lang.Object)`. Cite: `org/graalvm/word/WordBase.html#equals(java.lang.Object)`
# ◆ WordFactory
[word](index.md) › [org.graalvm.word](org/graalvm/word/index.md) · Every page: [llms.txt](llms.txt)
Class in [`org.graalvm.word`](org/graalvm/word/index.md). Since 19.0.
```java
public final class WordFactory
```
Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `WordFactory`
Provides factory method to create machine-word-sized values.
In an execution environment where value returned by this factory words are boxed values (e.g. not in Native Image runtime), a [`Pointer`](org/graalvm/word/Pointer.md) value will throw [`UnsatisfiedLinkError`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsatisfiedLinkError.html) if any of its memory access operations (i.e., read, write, compare-and-swap etc.) or conversion-to-Object operations (i.e., toObject) are invoked.
In a Native Image runtime, [word](org/graalvm/word/WordBase.md) values are distinct from Object values. To avoid problems related to this, word values must never be used as Objects, even when `javac` would allow it (e.g., `Map`). The Native Image builder will detect such usages and raise an error.
## Methods
### zero()
`public static T zero()`. Since 19.0. The constant 0, i.e., the word with no bits set. There is no difference between a signed and unsigned zero. Returns `T`: the constant 0. Cite: `org/graalvm/word/WordFactory.html#zero()`
### nullPointer()
`public static T nullPointer()`. Since 19.0. The null pointer, i.e., a word with all bits set to 0. There is no difference between a signed or unsigned `zero`. Returns `T`: a word value representing the null pointer. Cite: `org/graalvm/word/WordFactory.html#nullPointer()`
### unsigned(long)
`public static T unsigned(long val)`. Since 19.0. Creates a word whose value is supplied by `val` which is (lossily) narrowed on a 32-bit platform. Parameters: `val` `long`: a 64-bit unsigned value. Returns `T`: the value cast to Word. Cite: `org/graalvm/word/WordFactory.html#unsigned(long)`
### unsigned(int)
`public static T unsigned(int val)`. Since 19.0. Creates a word whose value is supplied by `val` which is zero-extended on a 64-bit platform. Parameters: `val` `int`: a 32 bit unsigned value. Returns `T`: the value cast to Word. Cite: `org/graalvm/word/WordFactory.html#unsigned(int)`
### pointer(long)
`public static T pointer(long val)`. Since 19.0. Unsafe conversion from a Java long value to a `pointer`. The parameter is treated as an unsigned 64-bit value (in contrast to the semantics of a Java long). Parameters: `val` `long`: a 64 bit unsigned value. Returns `T`: the value cast to PointerBase. Cite: `org/graalvm/word/WordFactory.html#pointer(long)`
### signed(long)
`public static T signed(long val)`. Since 19.0. Creates a word whose value is supplied by `val`. Parameters: `val` `long`: a 64-bit signed value. Returns `T`: the value cast to Word. Cite: `org/graalvm/word/WordFactory.html#signed(long)`
### signed(int)
`public static T signed(int val)`. Since 19.0. Creates a word whose value is supplied by a `val` which is sign-extended on a 64-bit platform. Parameters: `val` `int`: a 32-bit signed value. Returns `T`: the value cast to Word. Cite: `org/graalvm/word/WordFactory.html#signed(int)`
## Inherited members
- From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)