Module snap::read

source ·
Expand description

This module provides two std::io::Read implementations:

  • read::FrameDecoder wraps another std::io::Read implemenation, and decompresses data encoded using the Snappy frame format. Use this if you have a compressed data source and wish to read it as uncompressed data.
  • read::FrameEncoder wraps another std::io::Read implemenation, and compresses data encoded using the Snappy frame format. Use this if you have uncompressed data source and wish to read it as compressed data.

Typically, read::FrameDecoder is the version that you’ll want.

Structs§

  • A reader for decompressing a Snappy stream.
  • A reader for compressing data using snappy as it is read.