Modifier and Type | Field and Description |
---|---|
private long | |
private byte[] | |
private Page | |
private Page | |
private long |
Access | Constructor and Description |
---|---|
public | Page(long baseAddress, byte[] data)
The length of the data[] array implicitly defines the size of the page. |
public | Page(long baseAddress, long unmappedPageLength)
This constructor creates an "unmapped" page of the specified length. |
Modifier and Type | Method and Description |
---|---|
public long | |
public boolean | |
public byte | |
public char | |
public void | getData(long startAddress, long numBytes, int[] destBuf, long destBufOffset)
Throws IndexOutOfBoundsException if the number of bytes requested is greater than the page size, or if the start address doesn't fall within the page. |
public void | getDataAsBytes(long startAddress, long numBytes, byte[] destBuf, long destBufOffset)
Throws IndexOutOfBoundsException if the number of bytes requested is greater than the page size, or if the start address doesn't fall within the page. |
public double | |
public float | |
public int | |
public long | |
public Page | |
public Page | |
public short | |
public long | |
public boolean | |
public void | |
public void |
baseAddress | back to summary |
---|---|
private long baseAddress |
data | back to summary |
---|---|
private byte[] data |
next | back to summary |
---|---|
private Page next |
prev | back to summary |
---|---|
private Page prev |
unmappedPageLength | back to summary |
---|---|
private long unmappedPageLength |
Page | back to summary |
---|---|
public Page(long baseAddress, byte[] data) The length of the data[] array implicitly defines the size of the page. |
Page | back to summary |
---|---|
public Page(long baseAddress, long unmappedPageLength) This constructor creates an "unmapped" page of the specified length. Fetches from this page will cause -1 to be inserted into the destination buffer. |
getBaseAddress | back to summary |
---|---|
public long getBaseAddress() |
getBoolean | back to summary |
---|---|
public boolean getBoolean(long address) |
getByte | back to summary |
---|---|
public byte getByte(long address) |
getChar | back to summary |
---|---|
public char getChar(long address, boolean bigEndian) |
getData | back to summary |
---|---|
public void getData(long startAddress, long numBytes, int[] destBuf, long destBufOffset) throws IndexOutOfBoundsException Throws IndexOutOfBoundsException if the number of bytes requested is greater than the page size, or if the start address doesn't fall within the page. There are no guarantees on whether any data was actually fetched if an IndexOutOfBoundsException is thrown. If this page is unmapped, -1 is returned for all addresses on this page. |
getDataAsBytes | back to summary |
---|---|
public void getDataAsBytes(long startAddress, long numBytes, byte[] destBuf, long destBufOffset) throws IndexOutOfBoundsException Throws IndexOutOfBoundsException if the number of bytes requested is greater than the page size, or if the start address doesn't fall within the page. There are no guarantees on whether any data was actually fetched if an IndexOutOfBoundsException is thrown. If this page is unmapped, throws a RuntimeException; this should be watched for at higher levels. |
getDouble | back to summary |
---|---|
public double getDouble(long address, boolean bigEndian) |
getFloat | back to summary |
---|---|
public float getFloat(long address, boolean bigEndian) |
getInt | back to summary |
---|---|
public int getInt(long address, boolean bigEndian) |
getLong | back to summary |
---|---|
public long getLong(long address, boolean bigEndian) |
getNext | back to summary |
---|---|
public Page getNext() |
getPrev | back to summary |
---|---|
public Page getPrev() |
getShort | back to summary |
---|---|
public short getShort(long address, boolean bigEndian) |
getSize | back to summary |
---|---|
public long getSize() |
isMapped | back to summary |
---|---|
public boolean isMapped() Indicates whether this page is mapped in the remote process's address space |
setNext | back to summary |
---|---|
public void setNext(Page next) |
setPrev | back to summary |
---|---|
public void setPrev(Page prev) |