encode.h

来自「机器人仿真软件」· C头文件 代码 · 共 27 行

H
27
字号
/* * Desc: Useful encoding/decoding routines * Author: Andrew Howard * Date: 16 Sep 2005 * CVS: $Id: encode.h,v 1.2 2004/09/23 05:42:04 inspectorg Exp $ */#ifndef ENCODE_H_#define ENCODE_H_/// Determine the size of the destination buffer for hex encodingsize_t EncodeHexSize(size_t src_len);/// Encode binary data to ascii hex.void EncodeHex(char *dst, size_t dst_len, const void *src, size_t src_len);/// Determine the size of the destination buffer for hex decodingsize_t DecodeHexSize(size_t src_len);/// Decodes ascii hex to binary data.  void DecodeHex(void *dst, size_t dst_len, const char *src, size_t src_len);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?