archive formats: comments are specs only

This commit is contained in:
4DBug committed 2026-11-01 01:53:52 -05:00
1 parent 8bd1a9327c
commit e792c419d9
36 files changed
+172 -442

No files matched your search

+4 -6
View File
@@ -1,8 +1,6 @@
--!strict
-- archive/bz2: a .bz2 file as a single-stream archive: one entry, the decompressed data (codecs/compress/Bzip2; concatenated
-- streams are joined, as bzip2 -d does). The entry is named after the file without its .bz2 (".tbz2" -> ".tar"),
-- else "data"; the api unwraps a .tar.bz2 into the tar inside (meta.stream). New in rosetta. Not supported:
-- writing (codecs/compress/Bzip2 has no compressor), randomised blocks (bzip2 0.9.0 and older).
-- archive/bz2: a .bz2 file as a single-stream archive of one entry (codecs/compress/Bzip2). Supports: read,
-- concatenated streams joined as bzip2 -d does. Not supported: writing, randomised blocks (bzip2 0.9.0 and older).
-- ------------------------------------------------------------------------------------------------ requires
local Err = require("@rosetta/core/Err")
@@ -21,8 +19,8 @@ local Bz2 = {
}
export type DecodeOptions = {
maxBytes: number?, -- refuse larger output (default 2^30)
name: string?, -- the file name (the api passes it): names the entry
maxBytes: number?, -- default 2^30
name: string?,
}
-- ------------------------------------------------------------------------------------------------ sniff