OSDN Git Service

Update version number to 1.2.1.0
[tortoisegit/TortoiseGitJp.git] / src / Utils / CBase64.h
1 // Base64.h: interface for the CBase64 class.\r
2 //\r
3 //////////////////////////////////////////////////////////////////////\r
4 \r
5 #if !defined(AFX_Base64_H__E435B968_4992_4795_8AED_B6E55FC89045__INCLUDED_)\r
6 #define AFX_Base64_H__E435B968_4992_4795_8AED_B6E55FC89045__INCLUDED_\r
7 \r
8 #if _MSC_VER > 1000\r
9 #pragma once\r
10 #endif // _MSC_VER > 1000\r
11 \r
12 class CBase64  \r
13 {\r
14 public:\r
15         CBase64();\r
16         virtual ~CBase64();\r
17 \r
18         CStringA Encode( IN const char* szEncoding, IN int nSize );\r
19         int Decode ( IN const char* szDecoding, char* szOutput );\r
20 \r
21 protected:\r
22         void write_bits( UINT nBits, int nNumBts, LPSTR szOutput, int& lp );\r
23         UINT read_bits( int nNumBits, int* pBitsRead, int& lp );\r
24 \r
25         int m_nInputSize;\r
26         int m_nBitsRemaining;\r
27         ULONG m_lBitStorage;\r
28         LPCSTR m_szInput;\r
29 private:\r
30 };\r
31 \r
32 #endif // !defined(AFX_Base64_H__E435B968_4992_4795_8AED_B6E55FC89045__INCLUDED_)\r