Files
marqdo-cli/stdlib/compress.mq.md
T

18 lines
439 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 压缩
`(文本)`
把 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", [字节列表])*