public class Page
extends java.lang.Object
Constructor and Description |
---|
Page(long baseAddress,
byte[] data)
The length of the data[] array implicitly defines the size of the
page.
|
Page(long baseAddress,
long unmappedPageLength)
This constructor creates an "unmapped" page of the specified
length.
|
Modifier and Type | Method and Description |
---|---|
long |
getBaseAddress() |
boolean |
getBoolean(long address) |
byte |
getByte(long address) |
char |
getChar(long address,
boolean bigEndian) |
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.
|
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.
|
double |
getDouble(long address,
boolean bigEndian) |
float |
getFloat(long address,
boolean bigEndian) |
int |
getInt(long address,
boolean bigEndian) |
long |
getLong(long address,
boolean bigEndian) |
Page |
getNext() |
Page |
getPrev() |
short |
getShort(long address,
boolean bigEndian) |
long |
getSize() |
boolean |
isMapped()
Indicates whether this page is mapped in the remote process's
address space
|
void |
setNext(Page next) |
void |
setPrev(Page prev) |
public Page(long baseAddress, byte[] data)
public Page(long baseAddress, long unmappedPageLength)
public long getBaseAddress()
public long getSize()
public boolean isMapped()
public Page getPrev()
public void setPrev(Page prev)
public Page getNext()
public void setNext(Page next)
public void getData(long startAddress, long numBytes, int[] destBuf, long destBufOffset) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public void getDataAsBytes(long startAddress, long numBytes, byte[] destBuf, long destBufOffset) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public boolean getBoolean(long address)
public byte getByte(long address)
public short getShort(long address, boolean bigEndian)
public char getChar(long address, boolean bigEndian)
public int getInt(long address, boolean bigEndian)
public long getLong(long address, boolean bigEndian)
public float getFloat(long address, boolean bigEndian)
public double getDouble(long address, boolean bigEndian)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.