frysk.debuginfo
Class UnavailablePiece
java.lang.Object
frysk.debuginfo.Piece
frysk.debuginfo.UnavailablePiece
public class UnavailablePiece
- extends Piece
Class to represent an unavailable piece of memory
Fields inherited from class frysk.debuginfo.Piece |
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)
|
UnavailablePiece
public UnavailablePiece(long size)
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 fromlength
- - 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