diff options
| author | jakob <jakob@memeware.net> | 2017-01-12 17:09:17 -0500 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-01-12 17:09:17 -0500 |
| commit | 43e539561a4ea95274468b78735555d6e89fdfd9 (patch) | |
| tree | 4a005aed01dc34c40b4fe5657d2b155ea4231e85 /src/decompress.h | |
| parent | 350b126eef468c7c8d66c72100d8a3c76e9afec1 (diff) | |
Finished implementation of file decryption. There are still many memory corruption bugs and a segfault is not uncommon.
Diffstat (limited to 'src/decompress.h')
| -rw-r--r-- | src/decompress.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/decompress.h b/src/decompress.h index a625f5e..dcb985b 100644 --- a/src/decompress.h +++ b/src/decompress.h @@ -21,9 +21,11 @@ #include "extract.h" -/* Wrapper for inflate_chunk which operates on FILE pointers. The file - pointer's contents are inflated into a memory stream and returned. */ -memory_stream decompress_file(FILE *archive, uint64_t sizes_offset); +/* Decompresses a memory_stream data structure into a new one. */ +memory_stream decompress_stream(memory_stream compressed_data, uint64_t size); + +/* Reads a FILE pointer into a memory_stream data structure. */ +memory_stream read_to_stream(FILE *archive, uint64_t buffer_size); /* Returns a pointer to a buffer containing the inflated contents of a given memory chunk. */ |