Skip to content

Commit 931b8ca

Browse files
committed
update huffman.h
1 parent f285c37 commit 931b8ca

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

include/compress.h

+10-10
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ typedef struct HuffNode_
2424

2525

2626
/**
27-
霍夫曼树
27+
霍夫曼编码表
2828
*/
2929
typedef struct HuffCode_
3030
{
@@ -36,22 +36,22 @@ typedef struct HuffCode_
3636

3737

3838
/**
39-
<#Description#>
39+
用霍夫曼编码的方法压缩缓冲区 original 中的数据 - O(n) n 是原始数据中符号的个数
4040
41-
@param original <#original description#>
42-
@param compressed <#compressed description#>
43-
@param size <#size description#>
44-
@return <#return value description#>
41+
@param original 原始数据缓冲区
42+
@param compressed 压缩后的数据
43+
@param size 缓冲区包含字节
44+
@return 压缩数据成功返回压缩后数据的字节数;否则,返回-1
4545
*/
4646
int huffman_compress(const unsigned char *original, unsigned char **compressed, int size);
4747

4848

4949
/**
50-
<#Description#>
50+
用霍夫曼编码的方法解压缩缓冲区 compressed 中的数据 - O(n) n 是原始数据中符号的个数
5151
52-
@param compressed <#compressed description#>
53-
@param original <#original description#>
54-
@return <#return value description#>
52+
@param compressed 压缩缓冲区
53+
@param original 恢复后数据
54+
@return 解压缩数据成功返回恢复后数据的字节数;否则,返回-1
5555
*/
5656
int huffman_uncompress(const unsigned char *compressed, unsigned char **original);
5757

0 commit comments

Comments
 (0)