summaryrefslogtreecommitdiff
path: root/src/compress.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-06-06 15:40:40 -0400
committerjakob <jakob@memeware.net>2017-06-06 15:40:40 -0400
commitcfd5fb6e6fb47e084e66e1e4e2d6a99f19be661e (patch)
tree5fcfe91127c67f6dbb94a81848e8c1b9e6ddea7d /src/compress.h
parent17b658ceadd08d693f23448c276958e2eea5970e (diff)
Cleaned up
Diffstat (limited to 'src/compress.h')
-rw-r--r--src/compress.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compress.h b/src/compress.h
index cfb2487..e885231 100644
--- a/src/compress.h
+++ b/src/compress.h
@@ -21,9 +21,13 @@
#include "io.h"
-/* Inflates `s` into a newly allocated stream structure. */
+/* Inflates `len` bytes from the current position of `s` to a new stream
+ structure of size `decompressed_len` bytes. Stream inflation will not
+ work if `decompressed_len` does not represent the actual size of the
+ original data. */
struct stream *stream_inflate(struct stream *s, size_t len,
size_t decompressed_len);
-/* Deflates `s` into a newly allocated stream structure. */
+/* Deflates `len` bytes from the current position of `s` to a new stream
+ structure, where the `len` member represents the decompressed size. */
struct stream *stream_deflate(struct stream *s, size_t len);