Files
iroh/.github/workflows
Friedel ZiegelmayerandAsmir Avdicevic 33dc559a52 feat(iroh)!: make blobs::read_at more flexible (#2756)
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>
2024-09-30 13:07:12 +00:00
..