josx.platform.rcx
Class Memory

java.lang.Object
  extended byjosx.platform.rcx.Memory

public class Memory
extends Object

Provides access to memory.


Field Summary
static Object MONITOR
          Should be used for all native memory accesses.
 
Constructor Summary
Memory()
           
 
Method Summary
static int getDataAddress(Object obj)
           
static byte readByte(int aAddr)
           
static short readShort(int aAddr)
           
static void setBit(int aAddr, int bit, int value)
           
static void writeByte(int aAddr, byte aByte)
           
static void writeShort(int aAddr, short s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Field Detail

MONITOR

public static final Object MONITOR
Should be used for all native memory accesses.

Constructor Detail

Memory

public Memory()
Method Detail

readByte

public static byte readByte(int aAddr)

writeByte

public static void writeByte(int aAddr,
                             byte aByte)

getDataAddress

public static int getDataAddress(Object obj)

setBit

public static void setBit(int aAddr,
                          int bit,
                          int value)

readShort

public static short readShort(int aAddr)

writeShort

public static void writeShort(int aAddr,
                              short s)