VuoBase64 implementation, based on the work of René Nyffenegger.
Copyright (C) 2004-2008 René Nyffenegger
This source code is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
René Nyffenegger rene. nyff enegg er@a dp-gm bh.c h
Definition in file VuoBase64.cc.
Go to the source code of this file.
Functions | |
static bool | is_base64 (unsigned char c) |
Returns true if the character is one of the 64 characters part of the Base64 encoding set. More... | |
char * | VuoBase64_encode (long long in_len, char const *bytes_to_encode) |
Converts data (raw 8-bit binary data) into ASCII Base64 text with a null-terminator. More... | |
char * | VuoBase64_decode (char const *encoded_string, long long *outputLength) |
Converts text (ASCII Base64 text) into raw 8-bit binary data, and outputs the number of decoded bytes in outputLength . More... | |
Variables | |
static const std::string | base64_chars |
The 64 characters part of the Base64 encoding set. More... | |
|
inlinestatic |
Returns true if the character is one of the 64 characters part of the Base64 encoding set.
Definition at line 49 of file VuoBase64.cc.
char* VuoBase64_decode | ( | char const * | encoded_string, |
long long * | outputLength | ||
) |
Converts text
(ASCII Base64 text) into raw 8-bit binary data, and outputs the number of decoded bytes in outputLength
.
The caller is responsible for freeing the returned string.
Definition at line 106 of file VuoBase64.cc.
char* VuoBase64_encode | ( | long long | in_len, |
char const * | bytes_to_encode | ||
) |
Converts data
(raw 8-bit binary data) into ASCII Base64 text with a null-terminator.
The caller is responsible for freeing the returned string.
Definition at line 58 of file VuoBase64.cc.
|
static |
The 64 characters part of the Base64 encoding set.
Definition at line 41 of file VuoBase64.cc.