Crate dbcomprs

Source
Expand description

DbComprs

Compress utils for developing database.

github

license-apache license-mit

§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.
DefaultCompressor
Default compressor

Enums§

CompressionAlgorithm
CompressionAlgorithm specifies to use which algorithm to compress a block.
Error
Compression/Decompression Error
Lz4Errorlz4 or lz4-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.