Struct inflate::InflateStream [] [src]

pub struct InflateStream { /* fields omitted */ }

Methods

impl InflateStream
[src]

[src]

Create a new stream for decoding raw deflate encoded data.

[src]

Create a new stream for decoding deflate encoded data with a zlib header and footer

[src]

Create a new stream for decoding deflate encoded data with a zlib header and footer

This version creates a decoder that does not checksum the data to validate it with the checksum provided with the zlib wrapper.

[src]

[src]

[src]

Try to uncompress/decode the data in data.

On success, returns how many bytes of the input data was decompressed, and a reference to the buffer containing the decompressed data.

This function may not uncompress all the provided data in one call, so it has to be called repeatedly with the data that hasn't been decompressed yet as an input until the number of bytes decoded returned is 0. (See the top level crate documentation for an example.)

Errors

If invalid input data is encountered, a string describing what went wrong is returned.

[src]

Returns the calculated checksum value of the currently decoded data.

Will return 0 for cases where the checksum is not validated.