TMyBuffer.h
上传用户:haiweijt
上传日期:2018-02-23
资源大小:8195k
文件大小:1k
- // TMyBuffer.h: interface for the TMyBuffer class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TMYBUFFER_H__01F3C4F5_39F6_4948_B544_A1FA4E2397A1__INCLUDED_)
- #define AFX_TMYBUFFER_H__01F3C4F5_39F6_4948_B544_A1FA4E2397A1__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class TMyBuffer
- {
- public:
- void Write(char* buf, int size);
- void WriteString(char* str);
- TMyBuffer();
- virtual ~TMyBuffer();
- private:
- char m_Buffer[1024];
- int m_Offset;
- };
- #endif // !defined(AFX_TMYBUFFER_H__01F3C4F5_39F6_4948_B544_A1FA4E2397A1__INCLUDED_)