Last change
on this file since 66 was 66, checked in by cheese, 11 years ago |
#1 add codec module (bin <-> hex-string)
|
File size:
559 bytes
|
Rev | Line | |
---|
[66] | 1 | /**
|
---|
| 2 | * @file cf_codec.h
|
---|
| 3 | * @author myusgun <myusgun@gmail.com>
|
---|
| 4 | *
|
---|
| 5 | * @remark
|
---|
| 6 | * 데이터 변환 기능 제공
|
---|
| 7 | *
|
---|
| 8 | * @example codec.c
|
---|
| 9 | */
|
---|
| 10 | #include "cf_base.h"
|
---|
| 11 |
|
---|
| 12 | #include <stddef.h>
|
---|
| 13 |
|
---|
| 14 | #ifndef __CF_CODEC_H__
|
---|
| 15 | #define __CF_CODEC_H__
|
---|
| 16 |
|
---|
| 17 | #ifdef __cplusplus
|
---|
| 18 | extern "C" {
|
---|
| 19 | #endif
|
---|
| 20 |
|
---|
| 21 | CF_EXPORT int
|
---|
| 22 | CF_Codec_BinaryToHex (const unsigned char * bin,
|
---|
| 23 | const size_t len,
|
---|
| 24 | char * hex);
|
---|
| 25 |
|
---|
| 26 | CF_EXPORT int
|
---|
| 27 | CF_Codec_HexToBinary (const char * hex,
|
---|
| 28 | unsigned char * bin,
|
---|
| 29 | size_t * len);
|
---|
| 30 |
|
---|
| 31 | #ifdef __cplusplus
|
---|
| 32 | }
|
---|
| 33 | #endif
|
---|
| 34 |
|
---|
| 35 | #endif // #ifndef __CF_DEBUG_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.