frysk.debuginfo
Class UnavailablePiece

java.lang.Object
  extended by frysk.debuginfo.Piece
      extended by frysk.debuginfo.UnavailablePiece

public class UnavailablePiece
extends Piece

Class to represent an unavailable piece of memory


Field Summary
 
Fields inherited from class frysk.debuginfo.Piece
size
 
Constructor Summary
UnavailablePiece(long size)
           
 
Method Summary
 boolean equals(Object p)
          Function that checks if the contents of two pieces are equal.
protected  byte getByte(long index)
           
protected  void putByte(long index, byte value)
           
protected  Piece slice(long offset, long length)
          Function to slice a Piece - slices a piece from byte OFFSET going for LENGTH bytes.
protected  void toPrint(PrintWriter writer)
           
 
Methods inherited from class frysk.debuginfo.Piece
getSize, setSize
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnavailablePiece

public UnavailablePiece(long size)
Method Detail

equals

public boolean equals(Object p)
Description copied from class: Piece
Function that checks if the contents of two pieces are equal.

Specified by:
equals in class Piece
Parameters:
p - Piece to be compared with
Returns:
true/false

slice

protected Piece slice(long offset,
                      long length)
Description copied from class: Piece
Function to slice a Piece - slices a piece from byte OFFSET going for LENGTH bytes.

Specified by:
slice in class Piece
Parameters:
offset - - byte position where slice should start from
length - - number of bytes to be sliced
Returns:
slice

putByte

protected void putByte(long index,
                       byte value)
Specified by:
putByte in class Piece

getByte

protected byte getByte(long index)
Specified by:
getByte in class Piece

toPrint

protected void toPrint(PrintWriter writer)
Specified by:
toPrint in class Piece