libwpd: WPXMemoryStream.h Source File documentation

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

# WPXMemoryStream.h

Go to the documentation of this file.

    00001 #ifndef MEMORYSTREAM_H
    00002 #define MEMORYSTREAM_H
    00003 #include "WPXStream.h"
    00004
    00005 class WPXMemoryInputStream : public WPXInputStream
    00006 {
    00007 public:
    00008         WPXMemoryInputStream(uint8_t *data, size_t size);
    00009         virtual ~WPXMemoryInputStream();
    00010
    00011         virtual bool isOLEStream() { return false; }
    00012         virtual WPXInputStream * getDocumentOLEStream() { return NULL; }
    00013
    00014         const virtual uint8_t *read(size_t numBytes, size_t &numBytesRead);
    00015         virtual int seek(long offset, WPX_SEEK_TYPE seekType);
    00016         virtual long tell();
    00017         virtual bool atEOS();
    00018
    00019 private:
    00020         long m_offset;
    00021         size_t m_size;
    00022         uint8_t *m_data;
    00023         uint8_t *m_tmpBuf;
    00024 };
    00025
    00026 #endif