altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
huffman.h
Go to the documentation of this file.
1 #ifndef ____HUFFMAN_H
2 #define ____HUFFMAN_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
15 #define HUFFHEAP_SIZE ((sizeof(double) * 257) + (((sizeof(void *) * 4) + sizeof(double) + sizeof(unsigned long)) * (257 * 3)) + ((sizeof(unsigned long) + sizeof(unsigned long)) * 257))
16 
27 extern unsigned long huffman_compress(const unsigned char *in,unsigned long inlen,unsigned char *out,unsigned long outlen,void *huffheap);
28 
39 extern unsigned long huffman_decompress(const unsigned char *in,unsigned long inlen,unsigned char *out,unsigned long outlen,void *huffheap);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif