XU XUv0.8.8
EN

API

#compress/flate

import: #compress/flate

counts: 3 函数, 0 方法, 0 类型, 0 常量, 0 方法集

inflate + 字面量 Huffman deflate。

inflate

XuAPI
pub fn inflate(src &string) string

用途

inflate,返回 string。失败时 throw。

参数

src &string
源数据(借用,调用方仍持有;类型 &string)

返回

string — 结果字符串

inflate_limit

XuAPI
pub fn inflate_limit(src &string, limit int) string

用途

inflatelimit。失败时 throw。

参数

src &string
源数据(借用,调用方仍持有;类型 &string)
limit int
limit(int)

返回

string — 结果字符串

deflate

XuAPI
pub fn deflate(src &string) string

用途

deflate,返回 string。

参数

src &string
源数据(借用,调用方仍持有;类型 &string)

返回

string — 结果字符串