Vuo
1.2.1
|
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
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. | |
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. | |
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 . | |
Variables | |
static const std::string | base64_chars |
The 64 characters part of the Base64 encoding set. | |
|
inlinestatic |
Returns true if the character is one of the 64 characters part of the Base64 encoding set.
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.
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.
|
static |
The 64 characters part of the Base64 encoding set.