pub struct CompressorOxide { /* private fields */ }
Expand description

Main compression struct.

Implementations

Create a new CompressorOxide with the given flags.

Notes

This function may be changed to take different parameters in the future.

Get the adler32 checksum of the currently encoded data.

Get the return status of the previous compress call with this compressor.

Get the raw compressor flags.

Notes

This function may be deprecated or changed in the future to use more rust-style flags.

Returns whether the compressor is wrapping the data in a zlib format or not.

Reset the state of the compressor, keeping the same parameters.

This avoids re-allocating data.

Set the compression level of the compressor.

Using this to change level after compresson has started is supported.

Notes

The compression strategy will be reset to the default one when this is called.

Set the compression level of the compressor using an integer value.

Using this to change level after compresson has started is supported.

Notes

The compression strategy will be reset to the default one when this is called.

Update the compression settings of the compressor.

Changing the DataFormat after compression has started will result in a corrupted stream.

Notes

This function mainly intented for setting the initial settings after e.g creating with default or after calling CompressorOxide::reset(), and behaviour may be changed to disallow calling it after starting compression in the future.

Trait Implementations

Initialize the compressor with a level of 4, zlib wrapper and the default strategy.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.