Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6base64.h
Go to the documentation of this file.
1 
10 #ifndef P6BASE64_H__
11 #define P6BASE64_H__ 1
12 
13 #include "p6com.h"
14 
15 #ifdef __cplusplus
16 namespace P6R {
17 extern "C" {
18 #endif
19 
28 static const P6BASE64FLAGS P6BASE64_NOFLAGS = 0x00000000;
29 
30 
38 #undef INTERFACE
39 #define INTERFACE p6IBase64
41 {
53  P6DECLCOMMETHOD(initialize)(P6THIS_ P6BASE64FLAGS flags ) P6PURE;
54 
83  P6DECLCOMMETHOD(decodeBlock)(P6THIS_ const P6CHAR* pInb64, P6UCHAR* pDecoded, P6UINT32 cBuffer, P6UINT32* pWritten ) P6PURE;
84 
112  P6DECLCOMMETHOD(encodeBlock)(P6THIS_ const P6CHAR* pIn, P6UINT32 inSize, P6BOOL multiLine, P6CHAR* pEncoded, P6UINT32 cBuffer, P6UINT32* pWritten ) P6PURE;
113 
142  P6DECLCOMMETHOD(encodeBlockURLSafe)(P6THIS_ const P6CHAR* pIn, P6UINT32 inSize, P6CHAR* pEncoded, P6UINT32 cBuffer, P6UINT32* pWritten ) P6PURE;
143 };
144 
145 
146 // {9C3680B8-0730-44a9-8B81-D0BA45382A55}
147 #define IF_p6IBase64 {0x9c3680b8,0x730,0x44a9,{0x8b,0x81,0xd0,0xba,0x45,0x38,0x2a,0x55}}
148 
149 // {8A9B5284-D12D-4fd0-8737-70D63F86886E}
150 #define COMP_p6Base64 {0x8a9b5284,0xd12d,0x4fd0,{0x87,0x37,0x70,0xd6,0x3f,0x86,0x88,0x6e}}
151 
152 #ifdef __cplusplus
153 }
154 } // namespace
155 #endif
156 
157 
158 #endif
159 
160 
unsigned char P6UCHAR
Definition: p6types.h:108
uint32_t P6UINT32
Definition: p6types.h:77
#define P6DECLAREICOM
Definition: p6defs.h:191
P6UINT32 P6BASE64FLAGS
P6BASE64FLAGS.
Definition: p6base64.h:27
#define P6PURE
Definition: p6defs.h:192
unsigned char P6BOOL
Boolean type.
Definition: p6types.h:133
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
#define P6THIS_
Definition: p6defs.h:193
Standard Base64 block encoder and decoder.
Definition: p6base64.h:40
P6COM definitions and interfaces.
char P6CHAR
Narrow character type.
Definition: p6types.h:105
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188