Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Base64.h File Reference


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)
Author
ejt
Name
tekkotsu-2_4_1
Revision
1.3
State
Exp
Date
2005/08/07 04:11:03

Definition in file Base64.h.

#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

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


Tekkotsu v2.4.1
Generated Tue Aug 16 16:32:53 2005 by Doxygen 1.4.4