org.vmmagic.unboxed
Class Extent
java.lang.Object
org.vmmagic.unboxed.Extent
public final class Extent
- extends Object
Represents a pointer-sized unsigned integer used for describing a length in bytes.
Typical uses include "length" or "size" arguments (e.g., for memcpy).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Extent
public Extent()
fromIntSignExtend
public static Extent fromIntSignExtend(int address)
fromIntZeroExtend
public static Extent fromIntZeroExtend(int address)
zero
public static Extent zero()
one
public static Extent one()
max
public static Extent max()
toInt
public int toInt()
toLong
public long toLong()
toWord
public Word toWord()
plus
public Extent plus(int byteSize)
plus
public Extent plus(Extent byteSize)
minus
public Extent minus(int byteSize)
minus
public Extent minus(Extent byteSize)
LT
public boolean LT(Extent extent2)
LE
public boolean LE(Extent extent2)
GT
public boolean GT(Extent extent2)
GE
public boolean GE(Extent extent2)
EQ
public boolean EQ(Extent extent2)
NE
public boolean NE(Extent extent2)