tokio-rs / tokio-uring

An io_uring backed runtime for Rust
MIT License
1.11k stars 117 forks source link

Add read_to_end functionality #271

Open kaimast opened 1 year ago

kaimast commented 1 year ago

This adds a method similar to tokio::io::AsyncReadExt::read_to_end.

There seems to be no straightforward way to get the filesize right now, so this is useful (at least for me).