Expand description
Read files in the WEBC format.
There are several readers to choose from, depending on the use case.
An OwnedReader
is the most convenient to work with because it owns the
buffer containing the *.webc
file, so it is able to retrieve or parse
arbitrary parts of the file as necessary. Due to the use of
shared_buffer::OwnedBuffer
, it is possible to use mmap to avoid keeping
the entire file in memory.
A StreamingReader
will read data from some std::io::Read
object and
parse it on-demand. This isn’t as flexible as OwnedReader
, but can be
less memory-intensive for use cases where random access isn’t required.
Structs
- A section containing the atoms volume.
- A directory that contains zero or more
DirEntry
’s. - The contents of a file in the volume.
- A section containing the file’s
Index
. - A section containing the file’s
Manifest
. - A reader for owned data that is already in memory.
- A reader which can parse a WEBC file from an arbitrary
Read
object. - A volume section containing a directory tree.
Enums
- An item in a volume.
- Errors that may occur while parsing a
DirEntry
. - Errors that may occur while looking up an item in a volume.
- Errors that may be emitted by
OwnedReader
. - The different sections in a webc file.
- Errors that may occur while parsing a
Section
. - Errors that may be emitted by
StreamingReader
. - Errors that may occur while reading a volume header.