Last change
on this file since 90 was 90, checked in by cheese, 11 years ago |
#1 fix bug on codec and arrange file flag
|
File size:
733 bytes
|
Rev | Line | |
---|
[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
|
---|
| 17 | extern "C" {
|
---|
| 18 | #endif
|
---|
| 19 |
|
---|
| 20 | CF_EXPORT int
|
---|
[88] | 21 | CF_Codec_Hex_Encode (const unsigned char * bin,
|
---|
| 22 | const size_t len,
|
---|
| 23 | char * hex);
|
---|
[66] | 24 |
|
---|
| 25 | CF_EXPORT int
|
---|
[88] | 26 | CF_Codec_Hex_Decode (const char * hex,
|
---|
[90] | 27 | unsigned char * bin);
|
---|
[66] | 28 |
|
---|
[88] | 29 | CF_EXPORT int
|
---|
| 30 | CF_Codec_Base64_Encode (const unsigned char * bin,
|
---|
| 31 | const size_t len,
|
---|
| 32 | char * base64);
|
---|
| 33 |
|
---|
| 34 | CF_EXPORT int
|
---|
| 35 | CF_Codec_Base64_Decode (const char * base64,
|
---|
[90] | 36 | unsigned char * bin);
|
---|
[88] | 37 |
|
---|
[66] | 38 | #ifdef __cplusplus
|
---|
| 39 | }
|
---|
| 40 | #endif
|
---|
| 41 |
|
---|
[73] | 42 | #endif // #ifndef __CF_CODEC_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.