Struct parquet::compression::SnappyCodec [−][src]
pub struct SnappyCodec { /* fields omitted */ }Codec for Snappy compression format.
Trait Implementations
impl Codec for SnappyCodec[src]
impl Codec for SnappyCodecfn 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
Auto Trait Implementations
impl Send for SnappyCodec
impl Send for SnappyCodecimpl Sync for SnappyCodec
impl Sync for SnappyCodec