RDKit: base64.h Source File

| RDKit Open-source cheminformatics and machine learning.

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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 #ifndef __RD_BASE64_H__
11 #define __RD_BASE64_H__
12 /*! \file base64.h
13
14 \brief Functionality for base64 encoding/decoding
15
16 */
17
18 //! return the base64 encoding of an array of unsigned chars
19 /*!
20 <b>Note:</b> The caller is responsible for calling \c delete[] on the
21 char array returned by this function.
22 */
23 char *Base64Encode(const unsigned char *, const unsigned int);
24
25 //! return the base64 encoding of an array of chars
26 /*!
27 <b>Note:</b> The caller is responsible for calling \c delete[] on the
28 char array returned by this function.
29 */
30 char *Base64Encode(const char *, const unsigned int);
31
32 //! return the decoded version of a base64 encoded char array
33 /*!
34 <b>Note:</b> The caller is responsible for calling \c delete[] on the
35 char array returned by this function.
36 */
37 char *Base64Decode(const char *, unsigned int *);
38
39 #endif
Base64Encode
char * Base64Encode(const unsigned char *, const unsigned int)
return the base64 encoding of an array of unsigned chars
Base64Decode
char * Base64Decode(const char *, unsigned int *)
return the decoded version of a base64 encoded char array