struct InflateResult
XuAPI
pub struct InflateResult {
pub data string
pub next_pos int
}Purpose
Structure encapsulating data, next_pos.
Public fields
datastring- data
next_posint- field (int)
#compress/flateInflate and bounded LZ77/fixed-Huffman deflate, with stored-block fallback for incompressible data.
struct InflateResultpub struct InflateResult {
pub data string
pub next_pos int
}Structure encapsulating data, next_pos.
data stringnext_pos intinflatepub fn inflate(src &string) stringDecompress DEFLATE data stream. Throws on failure; handle the error or propagate it to the caller.
src &stringstring — result string
inflate_limitpub fn inflate_limit(src &string, limit int) stringA positive limit caps bytes before appending or expanding backreferences. Throws on failure; handle the error or propagate it to the caller.
src &stringlimit intstring — result string
inflate_from_limitpub fn inflate_from_limit(src &string, start int, limit int) InflateResultInflate from limit. Throws on failure; handle the error or propagate it to the caller.
src &stringstart intlimit intInflateResult — a value of this type
deflatepub fn deflate(src &string) stringCompress input data using standard DEFLATE algorithm.
src &stringstring — result string