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

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

#1 add bitwise util from ARIA of chevalier

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