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);
26 virtual unsigned put(char);
27 virtual bool getline(std::string &);
29 unsigned seek(int, SeekType);
30 unsigned tell() const { return pos-begin; }
31 virtual Handle get_event_handle();
33 virtual unsigned do_write(const char *, unsigned);
34 virtual unsigned do_read(char *, unsigned);
35 void check_mode(Mode) const;