XU XUv0.8.8
EN

API

#compress/lzw

import: #compress/lzw

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

GIF LSB / PDF MSB LZW。

const lsb

XuAPI
pub const lsb = 0

用途

公开常量 `lsb`。 值为 `0`

参数

无

const msb

XuAPI
pub const msb = 1

用途

公开常量 `msb`。 值为 `1`

参数

无

encode

XuAPI
pub fn encode(src &string, order int, lit_width int) string

用途

编码。失败时 throw。

参数

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

返回

string — 结果字符串

decode

XuAPI
pub fn decode(src &string, order int, lit_width int) string

用途

解码。失败时 throw。

参数

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

返回

string — 结果字符串