summaryrefslogtreecommitdiff
path: root/src/decompress.h
diff options
context:
space:
mode:
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);