Eneboo - Documentación para desarrolladores
src/libmysql_std/include/base64.h
Ir a la documentación de este archivo.
00001 /* Copyright (C) 2003 MySQL AB
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00015 
00016 #ifndef __BASE64_H_INCLUDED__
00017 #define __BASE64_H_INCLUDED__
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00023 
00024 #include <mysys_priv.h>
00025 
00026 /*
00027   Calculate how much memory needed for dst of base64_encode()
00028 */
00029 int base64_needed_encoded_length(int length_of_data);
00030 
00031 /*
00032   Calculate how much memory needed for dst of base64_decode()
00033 */
00034 int base64_needed_decoded_length(int length_of_encoded_data);
00035 
00036 /*
00037   Encode data as a base64 string
00038 */
00039 int base64_encode(const void *src, size_t src_len, char *dst);
00040 
00041 /*
00042   Decode a base64 string into data
00043 */
00044 int base64_decode(const char *src, size_t src_len, void *dst);
00045 
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050 #endif /* !__BASE64_H_INCLUDED__ */
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'