Offers interface to encode/decode strings into different formats.
Base64EncodeString | Offers interface to encode/decode strings into different formats. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file Base64EncodeString. |
C-kern/ | Implementation file Base64EncodeString impl. |
Base64Encoding. | All functions assumes that strings are utf8 encoded. |
Functions | |
test | |
unittest_string_base64encode | Test encoding/decoding of strings. |
string_t | |
query | |
sizebase64encode_string | Returns the size of the encoded string. |
sizebase64decode_string | Returns the size of the decoded string. |
base64encoding | |
base64encode_string | Encodes string str in Base64 format. |
base64decode_string | Decodes string str from Base64 into a binary octet stream. |
inline implementation | |
Macros | |
sizebase64encode_string | Implements string_t.sizebase64encode_string. |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2011 Jörg Seebohn
Header file Base64EncodeString.
Implementation file Base64EncodeString impl.
test | |
unittest_string_base64encode | Test encoding/decoding of strings. |
query | |
sizebase64encode_string | Returns the size of the encoded string. |
sizebase64decode_string | Returns the size of the decoded string. |
base64encoding | |
base64encode_string | Encodes string str in Base64 format. |
base64decode_string | Decodes string str from Base64 into a binary octet stream. |
#define sizebase64encode_string( str ) (4 * ((2 + (str)->size)/3))
Implements string_t.sizebase64encode_string.
Test encoding/decoding of strings.
int unittest_string_base64encode( void )
Returns the size of the encoded string.
size_t sizebase64encode_string( const struct string_t * str )
Returns the size of the decoded string.
size_t sizebase64decode_string( const struct string_t * str )
Encodes string str in Base64 format.
int base64encode_string( const struct string_t * str, /*ret*/struct wbuffer_t * result )
Decodes string str from Base64 into a binary octet stream.
int base64decode_string( const struct string_t * str, /*ret*/struct wbuffer_t * result )
Implements string_t.sizebase64encode_string.
#define sizebase64encode_string( str ) (4 * ((2 + (str)->size)/3))