org.vmmagic.unboxed
Class Extent

java.lang.Object
  extended by 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).


Constructor Summary
Extent()
           
 
Method Summary
 boolean EQ(Extent extent2)
           
static Extent fromIntSignExtend(int address)
           
static Extent fromIntZeroExtend(int address)
           
 boolean GE(Extent extent2)
           
 boolean GT(Extent extent2)
           
 boolean LE(Extent extent2)
           
 boolean LT(Extent extent2)
           
static Extent max()
           
 Extent minus(Extent byteSize)
           
 Extent minus(int byteSize)
           
 boolean NE(Extent extent2)
           
static Extent one()
           
 Extent plus(Extent byteSize)
           
 Extent plus(int byteSize)
           
 int toInt()
           
 long toLong()
           
 Word toWord()
           
static Extent zero()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extent

public Extent()
Method Detail

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)