josx.platform.rcx
Class PersistentMemoryArea
java.lang.Object
|
+--josx.platform.rcx.PersistentMemoryArea
- public class PersistentMemoryArea
- extends Object
A memory area for persistent storage.
Only removing batteries will delete it.
The magic number should be different for each application
(use a random integer).
At the moment there can be only one PersistentMemoryArea,
that will be reinitialized if you change the magic number.
This may change in the future, with more than one area and
magic number used to distinguish them.
get
public static PersistentMemoryArea get(int magic,
int size)
throws OutOfMemoryError
readByte
public byte readByte(int i)
throws ArrayIndexOutOfBoundsException
writeByte
public void writeByte(int i,
byte b)
throws ArrayIndexOutOfBoundsException