zig/lib/std/compress
Xavier Bouchoux 67b3e07260 zlib: naming convention
Adress review comments from https://github.com/ziglang/zig/pull/13977
by using the same naming convention as zstd.

And by using `finish()` instead of `close()` for the finalisation of the compressed stream.
rationale:
  - it is not the same as how close() is usually used, since it must be called to flush and write the final bytes. And as such it may fail.
  - it is not the same `flush` in the deflate code, which allows to keep writting more bytes later, and doesn't write the final checksum.
  - it is the same name as used in the original zlib library (Z_FINISH)

Also, use a packed struct for the header, which seems a better fit.
2023-06-17 14:08:05 -07:00
..
deflate std.sort: add pdqsort and heapsort 2023-05-23 17:55:59 -07:00
lzma migration: std.math.{min, min3, max, max3} -> @min & @max 2023-06-16 13:44:09 -07:00
lzma2 Implement std.io.Reader for LZMA1 2023-02-05 08:23:51 -08:00
testdata std.compress: add zstandard decompressor 2023-02-20 09:09:05 +11:00
xz std: update to use @memcpy directly 2023-04-28 13:24:43 -07:00
zstandard std.sort: add pdqsort and heapsort 2023-05-23 17:55:59 -07:00
deflate.zig std: update to use @memcpy directly 2023-04-28 13:24:43 -07:00
gzip.zig support xz compressed tarballs in the package manager 2023-01-24 15:24:19 -07:00
lzma.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
lzma2.zig Delete redundant lzma/lzma2 prefix in function/struct names 2023-02-05 06:52:28 -08:00
xz.zig std.compress.xz: Avoid possible integer overflow in a few places 2023-02-05 06:08:35 -08:00
zlib.zig zlib: naming convention 2023-06-17 14:08:05 -07:00
zstandard.zig Improvements to docs and text 2023-04-23 21:06:21 +03:00