1 #ifndef MSP_IO_MEMORY_H_
2 #define MSP_IO_MEMORY_H_
9 class Memory: public Seekable
17 Memory(char *, std::size_t, Mode = M_RDWR);
18 Memory(char *, char *, Mode = M_RDWR);
19 Memory(const char *, std::size_t);
20 Memory(const char *, const char *);
22 void init(char *, char *, Mode);
25 virtual void set_block(bool);
26 virtual void set_inherit(bool);
29 virtual std::size_t do_write(const char *, std::size_t);
30 virtual std::size_t do_read(char *, std::size_t);
32 virtual std::size_t put(char);
33 virtual bool getline(std::string &);
36 virtual const Handle &get_handle(Mode);
38 virtual SeekOffset seek(SeekOffset, SeekType);
39 virtual SeekOffset tell() const { return pos-begin; }