1 #ifndef MSP_IO_MEMORY_H_
2 #define MSP_IO_MEMORY_H_
9 class Memory: public Seekable
17 Memory(char *, unsigned);
18 Memory(char *, char *);
19 Memory(const char *, unsigned);
20 Memory(const char *, const char *);
22 void init(char *, char *, Mode);
24 virtual unsigned do_write(const char *, unsigned);
25 virtual unsigned do_read(char *, unsigned);
27 virtual unsigned put(char);
28 virtual bool getline(std::string &);
31 virtual SeekOffset seek(SeekOffset, SeekType);
32 virtual SeekOffset tell() const { return pos-begin; }