-class wxMemoryInputStream: virtual public wxMemoryStreamBase, public wxInputStream {
- DECLARE_CLASS(wxMemoryInputStream)
- public:
- wxMemoryInputStream(const char *data, size_t length);
- virtual ~wxMemoryInputStream();
-
- wxInputStream& Read(void *buffer, size_t size);
- off_t SeekI(off_t pos, wxSeekMode mode);
- off_t TellI() const { return m_position_i; }
-
- bool Eof() const { return m_eof; }
- size_t LastRead() const { return m_lastread; }
-
- protected:
- bool m_eof;
- off_t m_position_i;
- size_t m_lastread;
+ size_t OnSysRead(void *buffer, size_t nbytes);
+ off_t OnSysSeek(off_t pos, wxSeekMode mode);
+ off_t OnSysTell() const;
+
+private:
+ size_t m_length;