keso.core
Class MT_U32RO

java.lang.Object
  extended by keso.core.MT_U32RO

public final class MT_U32RO
extends Object

This memory type allows to read-only map an unsigned 32-bit value.


Method Summary
 boolean equals(Object o)
          Returns true if both mapped fields are mapped to the same address.
 int get()
          Reads the value from the target location of the mapping.
 int hashCode()
          
 boolean isBitClear(int i)
          Checks if a given bit of the mapped value is cleared
 boolean isBitSet(int i)
          Checks if a given bit of the mapped value is set
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait
 

Method Detail

get

public int get()
Reads the value from the target location of the mapping.

Returns:
the read value

isBitSet

public boolean isBitSet(int i)
Checks if a given bit of the mapped value is set

Parameters:
i - position of the bit to be checked (0-31)
Returns:
true if the bit is set, false otherwise

isBitClear

public boolean isBitClear(int i)
Checks if a given bit of the mapped value is cleared

Parameters:
i - position of the bit to be checked (0-31)
Returns:
true if the bit is cleared, false otherwise

equals

public boolean equals(Object o)
Returns true if both mapped fields are mapped to the same address.

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()