1 #ifndef MSP_IO_MEMORY_H_
2 #define MSP_IO_MEMORY_H_
10 class Memory: public Base
18 Memory(char *, unsigned);
19 Memory(char *, char *);
20 Memory(const char *, unsigned);
21 Memory(const char *, const char *);
23 void init(char *, char *, Mode);
25 virtual unsigned do_write(const char *, unsigned);
26 virtual unsigned do_read(char *, unsigned);
28 virtual unsigned put(char);
29 virtual bool getline(std::string &);
32 unsigned seek(int, SeekType);
33 unsigned tell() const { return pos-begin; }
35 virtual Handle get_event_handle();
38 void check_mode(Mode) const;