summaryrefslogtreecommitdiff
path: root/src/decompress.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-01-09 20:51:41 -0500
committerjakob <jakob@memeware.net>2017-01-09 20:51:41 -0500
commit8eaa3f0526d380afe422152fada2bea27b8d8f70 (patch)
treeeded2f25609b6d131a377233fb215efac2b31c18 /src/decompress.h
parent7d141c7e79bb9688a475b88722f6101ad01ef782 (diff)
Significant progress on implementing file decryption. Offsets as of now are trying to go from within the table, which is incorrect. A working commit should come tomorrow.
Diffstat (limited to 'src/decompress.h')
-rw-r--r--src/decompress.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decompress.h b/src/decompress.h
index 184b0f8..a625f5e 100644
--- a/src/decompress.h
+++ b/src/decompress.h
@@ -24,3 +24,8 @@
/* 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);
+
+/* Returns a pointer to a buffer containing the
+ inflated contents of a given memory chunk. */
+Bytef *inflate_chunk(Bytef *chunk, uint64_t chunk_size,
+ uint64_t decompressed_size);