|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.value.Location frysk.debuginfo.PieceLocation
public class PieceLocation
Field Summary | |
---|---|
private List |
pieces
|
Constructor Summary | |
---|---|
PieceLocation(List pieces)
|
Method Summary | |
---|---|
static Location |
createSimpleLoc(long address,
long size,
ByteBuffer buf)
Creates a simple single piece memory location. |
long |
getAddress()
Returns the address only if value is in a _contiguous memory_ location. |
protected byte |
getByte(long offset)
Return the byte at OFFSET. |
List |
getPieces()
|
private long |
indexOf(long offset)
Function to map overall byte index to piece byte index. |
long |
length()
Returns the number of bytes in location. |
private Piece |
pieceOf(long offset)
Function that returns the piece of given offset. |
protected void |
putByte(long offset,
byte value)
Stores the byte VALUE at OFFSET. |
protected Location |
slice(long offset,
long length)
Return a slice of this Location starting at byte OFFSET, and going for LENGTH bytes. |
private long |
sliceLength(List slice)
Helper function for slice - returns the number of bytes in slice list. |
void |
toPrint(PrintWriter writer)
Print this Location. |
Methods inherited from class frysk.value.Location |
---|
get, put, toByteArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final List pieces
Constructor Detail |
---|
public PieceLocation(List pieces)
Method Detail |
---|
public List getPieces()
public void toPrint(PrintWriter writer)
Location
toPrint
in class Location
public long getAddress()
getAddress
in class Location
public static Location createSimpleLoc(long address, long size, ByteBuffer buf)
private long indexOf(long offset)
offset
- - overall byte offset of value
private Piece pieceOf(long offset)
offset
- - overall byte offset of value
protected byte getByte(long offset)
getByte
in class Location
protected void putByte(long offset, byte value)
putByte
in class Location
public long length()
length
in class Location
protected Location slice(long offset, long length)
slice
in class Location
private long sliceLength(List slice)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |