⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 base64.h

📁 这是个soket的代码不是太实用但是对出学者还是有些帮助的 有需要的可以
💻 H
字号:
#if !defined(AFX_BASE64_H__55383CAF_DCC9_11D5_9456_0050BAF080E4__INCLUDED_)
#define AFX_BASE64_H__55383CAF_DCC9_11D5_9456_0050BAF080E4__INCLUDED_

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

class CBase64
{
public:
	CBase64();
	virtual ~CBase64();

	virtual int Decode( LPCTSTR szDecoding, LPTSTR szOutput);
	virtual CString Encode( LPCTSTR szEncoding, int nSize);

protected:
	void write_bits( UINT nBits, int nNumBts, LPTSTR szOutput, int& lp );
	UINT read_bits( int nNumBits, int* pBitsRead, int& lp );

	int m_nInputSize;
	int m_nBitsRemaining;
	ULONG m_lBitStorage;
	LPCTSTR m_szInput;

	static int m_nMask[];
	static CString m_sBase64Alphabet;
private:
};

#endif // !defined(AFX_BASE64_H__55383CAF_DCC9_11D5_9456_0050BAF080E4__INCLUDED_)

⌨️ 快捷键说明

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