| Crates.io | markable_reader |
| lib.rs | markable_reader |
| version | 2.1.1 |
| created_at | 2023-07-28 18:54:11.525247+00 |
| updated_at | 2023-12-12 03:50:02.705079+00 |
| description | Provides a reader which can be marked in a position to be returned to after subsequent reads |
| homepage | |
| repository | https://github.com/ninehill/markable_reader |
| max_upload_size | |
| id | 928746 |
| size | 32,952 |
A Markable Stream functions as an ordinary reader with the added ability to mark a stream at an arbitrary location that can be returned to after subsequent reads. There are two variants in this package: 1) Markable Stream; and 2) Buffered Markable Stream.
Usage is the same as with any other std::io::Read trait, with the exception of two additional functions: mark() and reset(), which mark the location of the stream to return to at a later point and reset the stream back to that position respectively.