Struct parquet::compression::LZ4Codec [−][src]
pub struct LZ4Codec {}Codec for LZ4 compression algorithm.
Trait Implementations
impl Codec for LZ4Codec[src]
impl Codec for LZ4Codecfn decompress(
&mut self,
input_buf: &[u8],
output_buf: &mut Vec<u8>
) -> Result<usize>[src]
fn decompress(
&mut self,
input_buf: &[u8],
output_buf: &mut Vec<u8>
) -> Result<usize>Decompresses data stored in slice input_buf and writes output to output_buf. Returns the total number of bytes written. Read more
fn compress(&mut self, input_buf: &[u8]) -> Result<Vec<u8>>[src]
fn compress(&mut self, input_buf: &[u8]) -> Result<Vec<u8>>Compresses data stored in slice input_buf and returns a new vector with the compressed data. TODO: it's better to pass in vec here (e.g., allow reuse), but flate2 api doesn't support this. Read more