1
0

base64.h 434 B

12345678910111213141516
  1. #ifndef _BASE64_H
  2. #define _BASE64_H
  3. #include <bfc/memblock.h>
  4. class Base64 {
  5. public:
  6. static int decode(MemBlock<wchar_t> &h64, MemBlock<char> &htext);
  7. static int decode(MemBlock<char> &h64, MemBlock<char> &htext);
  8. static int encode(MemBlock<char> &htext, MemBlock<char> &h64, int linelength);
  9. static int encode(MemBlock<char> &htext, MemBlock<wchar_t> &h64, int linelength);
  10. private:
  11. static char encodingTable[64];
  12. };
  13. #endif