forked from irwir/eMule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CBase64Coding.hpp
50 lines (37 loc) · 1.12 KB
/
CBase64Coding.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#if ! defined( BASE_64_CODING_CLASS_HEADER )
#pragma once
/*
** Author: Samuel R. Blackburn
** Internet: wfc@pobox.com
**
** You can use it any way you like as long as you don't try to sell it.
**
** Any attempt to sell WFC in source code form must have the permission
** of the original author. You can produce commercial executables with
** WFC but you can't sell WFC.
**
** Copyright, 2000, Samuel R. Blackburn
**
** $Workfile: CBase64Coding.hpp $
** $Revision: 3 $
** $Modtime: 1/04/00 4:39a $
*/
#define BASE_64_CODING_CLASS_HEADER
class CBase64Coding
{
private:
// Don't allow canonical behavior (i.e. don't allow this class
// to be passed by value)
CBase64Coding( const CBase64Coding& ) {};
CBase64Coding& operator=( const CBase64Coding& ) { return( *this ); };
public:
// Construction
CBase64Coding();
/*
** Destructor should be virtual according to MSJ article in Sept 1992
** "Do More with Less Code:..."
*/
virtual ~CBase64Coding();
virtual BOOL Encode( const char * source, int len, char * destination );
};
#endif // BASE_64_CODING_CLASS_HEADER