public enum MemoryDataType extends java.lang.Enum<MemoryDataType>
Enum Constant and Description |
---|
BYTE
The byte data type.
|
DWORD
The double-word data type.
|
HWORD
The half-word data type.
|
OWORD
The octo-word data type.
|
QWORD
The quad-word data type.
|
WORD
The word data type.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
align(java.math.BigInteger address)
Returns the aligned address (zero a required number of bits at the end).
|
int |
getLowerAddressBit()
Returns the lower significant bit of the address.
|
int |
getSizeInBytes()
Returns the size in bytes.
|
boolean |
isAligned(java.math.BigInteger address)
Checks whether the address is aligned (contains a sufficient number of zero bits at the end).
|
static MemoryDataType |
type(int sizeInBytes) |
static MemoryDataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MemoryDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryDataType BYTE
public static final MemoryDataType HWORD
public static final MemoryDataType WORD
public static final MemoryDataType DWORD
public static final MemoryDataType QWORD
public static final MemoryDataType OWORD
public static MemoryDataType[] values()
for (MemoryDataType c : MemoryDataType.values()) System.out.println(c);
public static MemoryDataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static MemoryDataType type(int sizeInBytes)
public int getSizeInBytes()
public int getLowerAddressBit()
public boolean isAligned(java.math.BigInteger address)
address
- the address to be checked.true
if the address is aligned; false
otherwise.public java.math.BigInteger align(java.math.BigInteger address)
address
- the address to be aligned.