From 36e470b9a87b531c4c8251bcaf17d7cd2d7f6a93 Mon Sep 17 00:00:00 2001 From: Cosmin Apreutesei Date: Fri, 29 Sep 2017 22:46:51 +0300 Subject: [PATCH] doc update --- zlib.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zlib.md b/zlib.md index 7f1fb26..ff8932e 100644 --- a/zlib.md +++ b/zlib.md @@ -12,8 +12,11 @@ Returns the zlib version. ### `zlib.deflate(read, write[, bufsize][, format][, level][, windowBits][, memLevel][, strategy])` - * `read` is a reader function `read() -> s[,size] | cdata,size | nil` - * `write` is a writer function `write(cdata, size)` + * `read` is a reader function `read() -> s[,size] | cdata,size | nil`, + but it can also be a string or a table of strings. + * `write` is a writer function `write(cdata, size)`, but it can also be an + empty string (in which case a string with the output is returned) or + an output table (in which case a table with output chunks is returned). * `bufsize` determines the frequency and size of the writes * `format` can be: * 'zlib' - wrap the deflate stream with a zlib header and trailer (default)