public final class WordFactory extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends PointerBase> |
nullPointer()
The null pointer, i.e., the pointer with no bits set.
|
static <T extends PointerBase> |
pointer(long val)
Unsafe conversion from a Java long value to a
pointer . |
static <T extends SignedWord> |
signed(int val)
Unsafe conversion from a Java int value to a Word.
|
static <T extends SignedWord> |
signed(long val)
Unsafe conversion from a Java long value to a Word.
|
static <T extends UnsignedWord> |
unsigned(int val)
Unsafe conversion from a Java int value to a Word.
|
static <T extends UnsignedWord> |
unsigned(long val)
Unsafe conversion from a Java long value to a Word.
|
static <T extends WordBase> |
zero()
The constant 0, i.e., the word with no bits set.
|
public static <T extends WordBase> T zero()
public static <T extends PointerBase> T nullPointer()
WordFactory.zero()
.public static <T extends UnsignedWord> T unsigned(long val)
val
- a 64 bit unsigned valuepublic static <T extends PointerBase> T pointer(long val)
pointer
. The parameter is
treated as an unsigned 64-bit value (in contrast to the semantics of a Java long).val
- a 64 bit unsigned valuepublic static <T extends UnsignedWord> T unsigned(int val)
val
- a 32 bit unsigned valuepublic static <T extends SignedWord> T signed(long val)
val
- a 64 bit signed valuepublic static <T extends SignedWord> T signed(int val)
val
- a 32 bit signed value