File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ typedef struct HuffNode_
24
24
25
25
26
26
/**
27
- 霍夫曼树
27
+ 霍夫曼编码表
28
28
*/
29
29
typedef struct HuffCode_
30
30
{
@@ -36,22 +36,22 @@ typedef struct HuffCode_
36
36
37
37
38
38
/**
39
- <#Description#>
39
+ 用霍夫曼编码的方法压缩缓冲区 original 中的数据 - O(n) n 是原始数据中符号的个数
40
40
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
45
45
*/
46
46
int huffman_compress (const unsigned char * original , unsigned char * * compressed , int size );
47
47
48
48
49
49
/**
50
- <#Description#>
50
+ 用霍夫曼编码的方法解压缩缓冲区 compressed 中的数据 - O(n) n 是原始数据中符号的个数
51
51
52
- @param compressed <#compressed description#>
53
- @param original <#original description#>
54
- @return <#return value description#>
52
+ @param compressed 压缩缓冲区
53
+ @param original 恢复后数据
54
+ @return 解压缩数据成功返回恢复后数据的字节数;否则,返回-1
55
55
*/
56
56
int huffman_uncompress (const unsigned char * compressed , unsigned char * * original );
57
57
You can’t perform that action at this time.
0 commit comments