Expand description
Implementation of bao streaming for std io and tokio io
Modules
- Async (tokio) io, written in fsm style
- Implementations of the outboard traits
- Syncronous IO
Structs
- A bao header, containing the size of the file.
- A leaf node.
- A parent hash pair.
Enums
- Error when decoding from a reader, both when reading the size and after
- Error when decoding from a reader, after the size has been read
- Error when encoding from outboard and data
- Error when starting to decode from a reader
Functions
- The encoded size of a file of size
sizewith a block size ofblock_size - Computes the pre order outboard of a file in memory.
- The outboard size of a file of size
sizewith a block size ofblock_size - Given a range set of byte ranges, round it up to full chunks.