RDKit
Open-source cheminformatics and machine learning.
base64.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2002-2008 Greg Landrum and Rational Discovery LLC
3 //
4 // @@ All Rights Reserved @@
5 // This file is part of the RDKit.
6 // The contents are covered by the terms of the BSD license
7 // which is included in the file license.txt, found at the root
8 // of the RDKit source tree.
9 //
10 #include <RDGeneral/export.h>
11 #ifndef __RD_BASE64_H__
12 #define __RD_BASE64_H__
13 /*! \file base64.h
14 
15  \brief Functionality for base64 encoding/decoding
16 
17 */
18 
19 //! return the base64 encoding of an array of unsigned chars
20 /*!
21  <b>Note:</b> The caller is responsible for calling \c delete[] on the
22  char array returned by this function.
23  */
24 RDKIT_DATASTRUCTS_EXPORT char *Base64Encode(const unsigned char *, const unsigned int);
25 
26 //! return the base64 encoding of an array of chars
27 /*!
28  <b>Note:</b> The caller is responsible for calling \c delete[] on the
29  char array returned by this function.
30  */
31 RDKIT_DATASTRUCTS_EXPORT char *Base64Encode(const char *, const unsigned int);
32 
33 //! return the decoded version of a base64 encoded char array
34 /*!
35  <b>Note:</b> The caller is responsible for calling \c delete[] on the
36  char array returned by this function.
37  */
38 RDKIT_DATASTRUCTS_EXPORT char *Base64Decode(const char *, unsigned int *);
39 
40 #endif
RDKIT_DATASTRUCTS_EXPORT char * Base64Encode(const unsigned char *, const unsigned int)
return the base64 encoding of an array of unsigned chars
RDKIT_DATASTRUCTS_EXPORT char * Base64Decode(const char *, unsigned int *)
return the decoded version of a base64 encoded char array
#define RDKIT_DATASTRUCTS_EXPORT
Definition: export.h:112