Move the pre-migration compress.mq.md content into this repository's package entry. The module leaves the default Bundle and is consumed through the explicit @compress package import; the baseline gzip/gunzip behaviour and the original test terminal value are preserved, and the CLI host ops stay put. Refs cflmy/marqdo#9, cflmy/marqdo-ext-archive#1
477 B
477 B
@exec compress
压缩
params(文本)
把 UTF-8 文本压缩为 gzip 字节列表(List,0–255)。输入上限 8 MiB;结果确定(不写入时间戳/文件名)。
return resource.request("compress.gzip", [文本])
解压
params(字节列表)
解压 gzip 字节列表并校验 UTF-8。输出上限 8 MiB;坏 gzip 返回 compress.invalid,非 UTF-8 返回 compress.not_utf8。
return resource.request("compress.gunzip", [字节列表])