mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-04 08:01:34 +00:00
Introduces `ReadAtLen` which allows to specify the behaviour of `read_at` more closely - `All` - reads until the end (formerly `None`) - `Exact(size)` - Reads exactly this many bytes (formerly `Some(size)` - `AtMost(size)` - Reads at most this many bytes, but allows for a shorter response if not enough data is available Closes #2738 ## Breaking Changes - `iroh::client::Blobs::read_at` and `read_at_to_bytes` now take `ReadAtLen` instead of `Option<usize>` --------- Co-authored-by: Asmir Avdicevic <asmir.avdicevic64@gmail.com>