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 -7
View File
@@ -1,10 +1,7 @@
--!strict
-- archive/xz: .xz (xz file format 1.2) and .lzma ("LZMA alone") files, read as single-stream archives holding one
-- entry (the decompressed data). Built on codecs/compress/Lzma. Supports: concatenated streams, stream padding, every block
-- layout, checks none / CRC-32 / CRC-64 (verified; SHA-256 is not verified), filters LZMA2, delta and the BCJ filters
-- archive/xz: .xz (xz file format 1.2) and .lzma ("LZMA alone") as single-stream archives (codecs/compress/Lzma).
-- Supports: concatenated streams, padding, checks none / CRC-32 / CRC-64 (SHA-256 unverified), LZMA2, delta, BCJ
-- x86 / PowerPC / ARM / ARM-Thumb / SPARC / ARM64. Not supported: writing, IA-64 / RISC-V filters.
-- The entry is named after the file (opts.name without .xz / .lzma; .txz -> .tar), else "data". meta.stream = true:
-- the api unwraps an inner archive (a .tar.xz loads as the tar).
-- ------------------------------------------------------------------------------------------------ requires
local Err = require("@rosetta/core/Err")
@@ -24,8 +21,8 @@ local Xz = {
}
export type DecodeOptions = {
maxBytes: number?, -- refuse output larger than this (default 2^30)
name: string?, -- the file name (the api passes it): names the entry
maxBytes: number?, -- default 2^30
name: string?,
}
-- ------------------------------------------------------------------------------------------------ constants