Module io

Source
Expand description

Implementation of bao streaming for std io and tokio io

Modules§

fsm
Async io, written in fsm style
mixed
Read from sync, send to tokio sender
outboard
Implementations of the outboard traits
sync
Sync IO operations

Structs§

Leaf
A leaf node.
Parent
A parent hash pair.

Enums§

BaoContentItem
A content item for the bao streaming protocol.
DecodeError
Error when decoding from a reader, after the size has been read
EncodeError
Error when encoding from outboard and data

Functions§

full_chunk_groups
Given a range set of byte ranges, round it up to chunk groups.
round_up_to_chunks
Given a range set of byte ranges, round it up to full chunks.
round_up_to_chunks_groups
Given a range set of chunk ranges, round up to chunk groups of the given size.