Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/IO_gzip.ml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ let encode ?(buf_size=4096 * 32) (oc:Out.t) : Out.t =
Bytes.set buf0 0 c;
write buf0 0 1
and close() =
ignore @@ Zlib.deflate zlib_str
buf0 0 0
w_buf 0 buf_size
Zlib.Z_FINISH
;
Zlib.deflate_end zlib_str;
Out.close oc
in
Expand Down