16 #ifndef _RL_SHARED_MEMORY_H_ 17 #define _RL_SHARED_MEMORY_H_ 46 int write(
unsigned long offset,
const void *buf,
int len);
47 int read (
unsigned long offset,
void *buf,
int len);
48 int readInt(
unsigned long offset,
int index);
49 int readShort(
unsigned long offset,
int index);
50 int readByte(
unsigned long offset,
int index);
51 float readFloat(
unsigned long offset,
int index);
52 int writeInt(
unsigned long offset,
int index,
int val);
53 int writeShort(
unsigned long offset,
int index,
int val);
54 int writeByte(
unsigned long offset,
int index,
unsigned char val);
55 int writeFloat(
unsigned long offset,
int index,
float val);
int read(unsigned long offset, void *buf, int len)
virtual ~rlSharedMemory()
rlSharedMemory(const char *name, unsigned long size, int rwmode=0600)
float readFloat(unsigned long offset, int index)
int writeInt(unsigned long offset, int index, int val)
int readShort(unsigned long offset, int index)
int writeShort(unsigned long offset, int index, int val)
int writeFloat(unsigned long offset, int index, float val)
int readByte(unsigned long offset, int index)
int write(unsigned long offset, const void *buf, int len)
int writeByte(unsigned long offset, int index, unsigned char val)
int readInt(unsigned long offset, int index)