memstream.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // memstream.h: interface for the Cmemstream class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MEMSTREAM_H__0967C069_F766_47EE_9B7B_B4D04C3859B9__INCLUDED_)
- #define AFX_MEMSTREAM_H__0967C069_F766_47EE_9B7B_B4D04C3859B9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class memstream : public CMemFile
- {
- public :
- memstream();
- ~memstream();
- void clear();
- void write(const char* pBuf, long length);
- void operator =(const memstream& other);
- bool operator ==(memstream& other);
- memstream& operator +=(string& str);
- memstream& operator +=(const char* pstr);
- operator char* const() const;
- long size() const;
- void TrimLeft(long length);
- // int read(char* pBuf, long length);
- private:
- /*
- char* m_pBuf;
- long m_lLength;
- long m_lBufSize;
- //*/
- // strstream* m_pBuf;
- // string ssss;
- };
- #endif // !defined(AFX_MEMSTREAM_H__0967C069_F766_47EE_9B7B_B4D04C3859B9__INCLUDED_)