public interface ImagePointer
com.ibm.dtfj.image.ImageAddressSpace.getPointer()
ImageAddressSpace.getPointer(long)
Modifier and Type | Method and Description |
---|---|
ImagePointer |
add(long offset)
Build a new image pointer offset from this one by the given amount.
|
boolean |
equals(Object obj)
Compares the argument to the receiver, and answers true
if they represent the same object using a class
specific comparison.
|
long |
getAddress()
Get the unwrapped address, represented as a Java long.
|
ImageAddressSpace |
getAddressSpace()
Get the address space to which this pointer belongs.
|
byte |
getByteAt(long index)
Get the value at the given offset from this pointer.
|
double |
getDoubleAt(long index)
Get the value at the given offset from this pointer.
|
float |
getFloatAt(long index)
Get the value at the given offset from this pointer.
|
int |
getIntAt(long index)
Get the value at the given offset from this pointer.
|
long |
getLongAt(long index)
Get the value at the given offset from this pointer.
|
ImagePointer |
getPointerAt(long index)
Get the value at the given offset from this pointer.
|
Properties |
getProperties()
Get the OS-specific properties for this address
|
short |
getShortAt(long index)
Get the value at the given offset from this pointer.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
boolean |
isExecutable()
Tests memory execute permission.
|
boolean |
isReadOnly()
Tests memory read/write permission.
|
boolean |
isShared()
Tests memory shared permission.
|
long getAddress()
Get the unwrapped address, represented as a Java long.
Use caution when comparing addresses, as some addresses may be negative.
Note that, on segmented memory architectures, it may not be possible to represent all addresses accurately as integers.
ImageAddressSpace getAddressSpace()
ImagePointer add(long offset)
offset
- Offset in bytes.boolean isExecutable() throws DataUnavailable
DataUnavailable
boolean isReadOnly() throws DataUnavailable
DataUnavailable
boolean isShared() throws DataUnavailable
DataUnavailable
ImagePointer getPointerAt(long index) throws MemoryAccessException, CorruptDataException
ImageProcess.getPointerSize()
. Note: to create an
ImagePointer using an absolute address use com.ibm.dtfj.image.ImageAddressSpace.getPointer()
index
- an offset (in bytes) from the current positionMemoryAccessException
- if the memory cannot be readCorruptDataException
- if the memory should be in the image, but is missing or corruptedImageProcess.getPointerSize()
,
ImageAddressSpace.getPointer(long)
long getLongAt(long index) throws MemoryAccessException, CorruptDataException
index
- an offset (in bytes) from the current positionMemoryAccessException
- if the memory cannot be readCorruptDataException
- if the memory should be in the image, but is missing or corruptedint getIntAt(long index) throws MemoryAccessException, CorruptDataException
index
- an offset (in bytes) from the current positionMemoryAccessException
- if the memory cannot be readCorruptDataException
- if the memory should be in the image, but is missing or corruptedshort getShortAt(long index) throws MemoryAccessException, CorruptDataException
index
- an offset (in bytes) from the current positionMemoryAccessException
- if the memory cannot be readCorruptDataException
- if the memory should be in the image, but is missing or corruptedbyte getByteAt(long index) throws MemoryAccessException, CorruptDataException
index
- an offset (in bytes) from the current positionMemoryAccessException
- if the memory cannot be readCorruptDataException
- if the memory should be in the image, but is missing or corruptedfloat getFloatAt(long index) throws MemoryAccessException, CorruptDataException
index
- an offset (in bytes) from the current positionMemoryAccessException
- if the memory cannot be readCorruptDataException
- if the memory should be in the image, but is missing or corrupteddouble getDoubleAt(long index) throws MemoryAccessException, CorruptDataException
index
- an offset (in bytes) from the current positionMemoryAccessException
- if the memory cannot be readCorruptDataException
- if the memory should be in the image, but is missing or corruptedboolean equals(Object obj)
java.lang.Object
equals
in class Object
obj
- Object.hashCode()
int hashCode()
java.lang.Object
true
when passed to
.equals
must answer the same value for this
method.hashCode
in class Object
Object.equals(java.lang.Object)
Properties getProperties()
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2004, 2025 IBM Corp. and others.