util_base64coder.h

来自「一个 盗取 QQ 密码的程序」· C头文件 代码 · 共 36 行

H
36
字号
// UTIL_Base64Coder.h: interface for the UTIL_Base64Coder class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_UTIL_BASE64CODER_H__01D40BD3_89C7_4C95_8299_6E05796DE71C__INCLUDED_)
#define AFX_UTIL_BASE64CODER_H__01D40BD3_89C7_4C95_8299_6E05796DE71C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class UTIL_Base64Coder  
{
public:
	UTIL_Base64Coder();
	virtual ~UTIL_Base64Coder();
	virtual bool Decode(const CByteArray& source, CByteArray& destination);
	virtual bool Decode(const CString&    source, CByteArray& destination);
	virtual bool Encode(const CByteArray& source, CByteArray& destination);
	virtual bool Encode(const CByteArray& source, CString&    destination);
	virtual bool Encode(const char *source, int len, CString& destination);

private:
	// Don't allow canonical behavior (i.e. don't allow this class
	// to be passed by value)
	UTIL_Base64Coder(const UTIL_Base64Coder&) {}
	UTIL_Base64Coder& operator = (const UTIL_Base64Coder&) { return (*this); }

protected:
	BYTE m_DecoderTable[256];
	virtual void m_InitializeDecoderTable(void);

};

#endif // !defined(AFX_UTIL_BASE64CODER_H__01D40BD3_89C7_4C95_8299_6E05796DE71C__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?