Expand description
DbComprs
§Introduction
§License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Structs§
- Compression
- Compression specifies how a block should be compressed.
- Default
Compressor - Default compressor
Enums§
- Compression
Algorithm - CompressionAlgorithm specifies to use which algorithm to compress a block.
- Error
- Compression/Decompression Error
- Lz4Error
lz4
orlz4-std
- Lz4 error
Traits§
- Compressor
- Compression/Decompression trait
Functions§
- compress_
into_ vec - Compresses the given data into a new vector.
- compress_
to - Compress data using the specified compression algorithm to the given buffer and return how many bytes were written.
- decompress_
into_ vec - Decompresses the data into a new vector.
- decompress_
to - Decompresses the given data into the given buffer, returning the number of bytes written.
- max_
compressed_ size - Returns the maximum size of the compressed data according to the compression algorithm and src size.