XU XUv0.8.8
中文

API

#compress/flate

import: #compress/flate

counts: 3 fns, 0 methods, 0 types, 0 consts, 0 ifaces

inflate plus literal-only Huffman deflate.

inflate

XuAPI
pub fn inflate(src &string) string

Purpose

inflate; returns string. Throws on failure.

Parameters

src &string
source (borrowed; caller keeps it; type &string)

Returns

string — result string

inflate_limit

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

Purpose

A positive limit caps bytes before appending or expanding backreferences. Throws on failure.

Parameters

src &string
source (borrowed; caller keeps it; type &string)
limit int
limit (int)

Returns

string — result string

deflate

XuAPI
pub fn deflate(src &string) string

Purpose

deflate; returns string.

Parameters

src &string
source (borrowed; caller keeps it; type &string)

Returns

string — result string