| java.lang.Object org.apache.harmony.luni.platform.PlatformAddress
All known Subclasses: org.apache.harmony.luni.platform.MappedPlatformAddress,
PlatformAddress | public class PlatformAddress implements ICommonDataTypes,Comparable(Code) | | The platform address class is an unsafe virtualization of an OS memory block.
|
Method Summary | |
final public void | autoFree() Sending auto free to an address means that, when this subsystem has
allocated the memory, it will automatically be freed when this object is
collected by the garbage collector if the memory has not already been
freed explicitly. | final public int | compareTo(Object other) | public PlatformAddress | duplicate() | final public boolean | equals(Object other) | public void | free() | final public PlatformAddress | getAddress(int offset) | final public byte | getByte(int offset) | final public void | getByteArray(int offset, byte[] bytes, int bytesOffset, int length) | final public double | getDouble(int offset, Endianness order) | final public double | getDouble(int offset) | final public float | getFloat(int offset, Endianness order) | final public float | getFloat(int offset) | final public int | getInt(int offset, Endianness order) | final public int | getInt(int offset) | final public long | getLong(int offset, Endianness order) | final public long | getLong(int offset) | final public short | getShort(int offset, Endianness order) | final public short | getShort(int offset) | final public long | getSize() | final public int | hashCode() | final public boolean | isNULL() | final public void | moveTo(PlatformAddress dest, long numBytes) | public PlatformAddress | offsetBytes(int offset) | public PlatformAddress | offsetBytes(long offset) | final public void | setAddress(int offset, PlatformAddress address) | final public void | setByte(int offset, byte value) | final public void | setByteArray(int offset, byte[] bytes, int bytesOffset, int length) | final public void | setDouble(int offset, double value, Endianness order) | final public void | setDouble(int offset, double value) | final public void | setFloat(int offset, float value, Endianness order) | final public void | setFloat(int offset, float value) | final public void | setInt(int offset, int value, Endianness order) | final public void | setInt(int offset, int value) | final public void | setLong(int offset, long value, Endianness order) | final public void | setLong(int offset, long value) | final public void | setShort(int offset, short value, Endianness order) | final public void | setShort(int offset, short value) | final public long | toLong() | final public String | toString() |
NULL | final public static PlatformAddress NULL(Code) | | NULL is the canonical address with address value zero.
|
SIZEOF | final static int SIZEOF(Code) | | This final field defines the size of an address on this platform.
|
UNKNOWN | final static long UNKNOWN(Code) | | |
PlatformAddress | PlatformAddress(long address, long size)(Code) | | |
autoFree | final public void autoFree()(Code) | | Sending auto free to an address means that, when this subsystem has
allocated the memory, it will automatically be freed when this object is
collected by the garbage collector if the memory has not already been
freed explicitly.
|
getByte | final public byte getByte(int offset)(Code) | | |
getByteArray | final public void getByteArray(int offset, byte[] bytes, int bytesOffset, int length)(Code) | | |
getDouble | final public double getDouble(int offset)(Code) | | |
getFloat | final public float getFloat(int offset)(Code) | | |
getInt | final public int getInt(int offset)(Code) | | |
getLong | final public long getLong(int offset)(Code) | | |
getShort | final public short getShort(int offset)(Code) | | |
getSize | final public long getSize()(Code) | | |
hashCode | final public int hashCode()(Code) | | |
isNULL | final public boolean isNULL()(Code) | | |
setByte | final public void setByte(int offset, byte value)(Code) | | |
setByteArray | final public void setByteArray(int offset, byte[] bytes, int bytesOffset, int length)(Code) | | |
setDouble | final public void setDouble(int offset, double value, Endianness order)(Code) | | |
setDouble | final public void setDouble(int offset, double value)(Code) | | |
setFloat | final public void setFloat(int offset, float value, Endianness order)(Code) | | |
setFloat | final public void setFloat(int offset, float value)(Code) | | |
setInt | final public void setInt(int offset, int value)(Code) | | |
setLong | final public void setLong(int offset, long value, Endianness order)(Code) | | |
setLong | final public void setLong(int offset, long value)(Code) | | |
setShort | final public void setShort(int offset, short value, Endianness order)(Code) | | |
setShort | final public void setShort(int offset, short value)(Code) | | |
toLong | final public long toLong()(Code) | | |
|
|