RDKit: base64.h Source File

| RDKit Open-source cheminformatics and machine learning.

Loading...
Searching...
No Matches
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 *,
25 const unsigned int);
26
27//! return the base64 encoding of an array of chars
28/*!
29 <b>Note:</b> The caller is responsible for calling \c delete[] on the
30 char array returned by this function.
31 */
32 RDKIT_DATASTRUCTS_EXPORT char *Base64Encode(const char *, const unsigned int);
33
34//! return the decoded version of a base64 encoded char array
35/*!
36 <b>Note:</b> The caller is responsible for calling \c delete[] on the
37 char array returned by this function.
38 */
39 RDKIT_DATASTRUCTS_EXPORT char *Base64Decode(const char *, unsigned int *);
40
41#endif
Base64Encode
RDKIT_DATASTRUCTS_EXPORT char * Base64Encode(const unsigned char *, const unsigned int)
return the base64 encoding of an array of unsigned chars
Base64Decode
RDKIT_DATASTRUCTS_EXPORT char * Base64Decode(const char *, unsigned int *)
return the decoded version of a base64 encoded char array
export.h
RDKIT_DATASTRUCTS_EXPORT
#define RDKIT_DATASTRUCTS_EXPORT
Definition export.h:89