Crate json_packer

Source

Structs§

CompressOptions
HuffmanCodec
PoolConfig
StringPool

Enums§

Error

Functions§

collect_keys
收集 JSON 中所有对象键的频率统计
compress_to_base64
压缩 JSON 到 Base64 字符串(无状态,按调用传入选项)
compress_to_bytes
压缩 JSON 到字节数组(无状态,按调用传入选项)
decode_base64
decompress_from_base64
从 Base64 字符串解压为 JSON
decompress_from_bytes
从字节数组解压为 JSON
encode_base64
read_dictionary
从位流读取字典表 返回键频率映射表
write_dictionary
写入字典表到位流 格式:[KEY_COUNT(uleb128)] + 对每个键: [KEY_LEN(uleb128)][KEY_UTF8…][FREQ(uleb128)]