summaryrefslogtreecommitdiff
path: root/libhuff/huff.h
blob: 28aecf1d65d393b49f93eb9e388076ef62b10d95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * huff.h
 *
 * Huffman decompression routines
 * 
 * libhuff
 */

#ifndef _HUFF_H
#define _HUFF_H

// Decompress_Mem returns size of uncompressed data if SizeLimit >= UncompressedDataSize,
// otherwise if UncompressedDataSize > SizeLimit, 0 is returned

// SizeLimit is the maximum space available for decompressed data

unsigned int huff_decompress(void *dst, void *src, int sizeLimit);

#endif