cleanup
[TortoiseGit.git] / src / Utils / CBase64.h
blobb0f1896660a49b535101f18b8c61d7bc40888329
1 // Base64.h: interface for the CBase64 class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_Base64_H__E435B968_4992_4795_8AED_B6E55FC89045__INCLUDED_)
6 #define AFX_Base64_H__E435B968_4992_4795_8AED_B6E55FC89045__INCLUDED_
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
12 class CBase64
14 public:
15 CBase64();
16 virtual ~CBase64();
18 CStringA Encode( IN const char* szEncoding, IN int nSize );
19 int Decode ( IN const char* szDecoding, char* szOutput );
21 protected:
22 void write_bits( UINT nBits, int nNumBts, LPSTR szOutput, int& lp );
23 UINT read_bits( int nNumBits, int* pBitsRead, int& lp );
25 int m_nInputSize;
26 int m_nBitsRemaining;
27 ULONG m_lBitStorage;
28 LPCSTR m_szInput;
29 private:
32 #endif // !defined(AFX_Base64_H__E435B968_4992_4795_8AED_B6E55FC89045__INCLUDED_)