feat(compress): add bounded gzip product codec

This commit is contained in:
Marqdo Agent committed 2026-11-21 10:48:27 +08:00
1 parent ff3f19a2ea
commit efbb8007e1
16 files changed
+372 -9

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
## 压缩
`(文本)`
把 UTF-8 文本压缩为 gzip 字节列表(`List<Int>`,0–255)。输入上限
8 MiB;结果确定(不写入时间戳/文件名)。
*resource.request("compress.gzip", [文本])*
## 解压
`(字节列表)`
解压 gzip 字节列表并校验 UTF-8。输出上限 8 MiB;坏 gzip 返回
`compress.invalid`,非 UTF-8 返回 `compress.not_utf8`。
*resource.request("compress.gunzip", [字节列表])*