source: libcf/trunk/include/cf_codec.h@ 96

Last change on this file since 96 was 96, checked in by cheese, 11 years ago

#1 fix hex decoder exception and rollback function interface of decoders

File size: 781 bytes
RevLine 
[66]1/**
2 * @file cf_codec.h
3 * @author myusgun <myusgun@gmail.com>
4 *
[73]5 * @remark 데이터 변환
[66]6 *
7 * @example codec.c
8 */
[88]9#ifndef __CF_CODEC_H__
10#define __CF_CODEC_H__
11
[66]12#include "cf_base.h"
13
14#include <stddef.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20CF_EXPORT int
[88]21CF_Codec_Hex_Encode (const unsigned char * bin,
22 const size_t len,
23 char * hex);
[66]24
25CF_EXPORT int
[88]26CF_Codec_Hex_Decode (const char * hex,
[96]27 unsigned char * bin,
28 size_t * len);
[66]29
[88]30CF_EXPORT int
31CF_Codec_Base64_Encode (const unsigned char * bin,
32 const size_t len,
33 char * base64);
34
35CF_EXPORT int
36CF_Codec_Base64_Decode (const char * base64,
[96]37 unsigned char * bin,
38 size_t * len);
[88]39
[66]40#ifdef __cplusplus
41}
42#endif
43
[73]44#endif // #ifndef __CF_CODEC_H__
Note: See TracBrowser for help on using the repository browser.