|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.value.Location frysk.value.ByteBufferLocation
public class ByteBufferLocation
A value's Location, implemented using a ByteBuffer. Largely used for testing (well should be); DWARF code proper uses the PieceLocation.
Field Summary | |
---|---|
private ByteBuffer |
buffer
|
private long |
offset
|
Constructor Summary | |
---|---|
ByteBufferLocation(ByteBuffer buffer)
|
|
ByteBufferLocation(ByteBuffer memory,
long offset,
long length)
|
Method Summary | |
---|---|
long |
getAddress()
|
protected byte |
getByte(long offset)
Return the byte at OFFSET. |
long |
length()
The length of the location, in bytes. |
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. |
void |
toPrint(PrintWriter writer)
Print this Location. |
String |
toString()
|
Methods inherited from class frysk.value.Location |
---|
get, put, toByteArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final ByteBuffer buffer
private final long offset
Constructor Detail |
---|
public ByteBufferLocation(ByteBuffer memory, long offset, long length)
public ByteBufferLocation(ByteBuffer buffer)
Method Detail |
---|
public String toString()
toString
in class Location
public long getAddress()
getAddress
in class Location
public void toPrint(PrintWriter writer)
Location
toPrint
in class Location
protected Location slice(long offset, long length)
slice
in class Location
protected byte getByte(long offset)
getByte
in class Location
protected void putByte(long offset, byte value)
putByte
in class Location
public long length()
Location
length
in class Location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |