#ifndef __MSTORAGE_HPP #define __MSTORAGE_HPP #include "fileheap.hpp" class FileHeapStorage_memory : public FileHeapStorage { char *p; unsigned long size; unsigned long cpos; unsigned long asize; public: FileHeapStorage_memory(); ~FileHeapStorage_memory(); int Read(void *buf, int buflen); int Write(const void *buf, int buflen); long Tell(); int Seek(long pos, int from); }; #endif