Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Base64.h File Reference

Describes base64 namespace, which holds some functions for encoding and decoding base64 data C_Base64 - a simple base64 encoder and decoder. More...

#include <string>
Include dependency graph for Base64.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  base64
 

holds some functions for encoding and decoding base64 data


Functions

string base64::encode (char buf[], unsigned int len)
 returns a string containing the base64 encoding of len bytes from buf
char * base64::decode (const std::string &data)
 returns a pointer to a newly allocated region contained the binary data decoded from data
unsigned int base64::decodeSize (const std::string &data)
 returns the number of bytes which will be decoded from data
bool base64::decode (const std::string &data, char buf[], unsigned int len)
 decodes data into buf, which you need to provide the size of in len

Detailed Description

Describes base64 namespace, which holds some functions for encoding and decoding base64 data C_Base64 - a simple base64 encoder and decoder.

Copyright (c) 1999, Bob Withers - bwit@pobox.com

This code may be freely used for any purpose, either personal or commercial, provided the authors copyright notice remains intact.

Modified by Ethan Tira-Thompson:

  • changed Base64 class to base64 namespace
  • modified functions to work on char[] instead of strings
  • added doxygen comments to header
Author:
Bob Withers - bwit@pobox.com (Creator)

Definition in file Base64.h.


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:54 2016 by Doxygen 1.6.3