Crate hff_std

source ·
Expand description

Implements the basic reader/writer functionality for HFF.

Structs

Traits

  • A chunk data source.
  • Extends the datasource to be able to write into a std::io::Write.

Functions

  • Read a HFF from the given stream.
  • Read a HFF from the given stream along with all the data for the chunks.
  • Create a table structure to be contained in the HFF. Panics if the given Ecc data is invalid.
  • Write the table structure to an HFF container. NOTE: This does not support seek streams and as such any compressed chunks will need to be buffered in memory until written. Seek will allow deferral of the compression and reduce memory requirements. Support for seek and lazy header updates will be added later. NOTE: Currently this expects a single root table to encapsulate everything in the file. This is not a rule in the file format, it is simply how this is written.