base64.h

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2002-2008 Greg Landrum and Rational Discovery LLC
00003 //
00004 //  @@ All Rights Reserved @@
00005 //  This file is part of the RDKit.
00006 //  The contents are covered by the terms of the BSD license
00007 //  which is included in the file license.txt, found at the root
00008 //  of the RDKit source tree.
00009 //
00010 #ifndef __RD_BASE64_H__
00011 #define __RD_BASE64_H__
00012 /*! \file base64.h
00013 
00014   \brief Functionality for base64 encoding/decoding
00015 
00016 */
00017 
00018 //! return the base64 encoding of an array of unsigned chars
00019 /*!
00020    <b>Note:</b> The caller is responsible for calling \c delete[] on the
00021      char array returned by this function.
00022  */
00023 char *Base64Encode(const unsigned char *,const unsigned int);
00024 
00025 //! return the base64 encoding of an array of chars
00026 /*!
00027    <b>Note:</b> The caller is responsible for calling \c delete[] on the
00028      char array returned by this function.
00029  */
00030 char *Base64Encode(const char *,const unsigned int);
00031 
00032 //! return the decoded version of a base64 encoded char array
00033 /*!
00034    <b>Note:</b> The caller is responsible for calling \c delete[] on the
00035      char array returned by this function.
00036  */
00037 char *Base64Decode(const char *,unsigned int *);
00038 
00039 #endif