est31
est31
> When it was found in the midst of the buffer read, the pointer of underlying reader should be moved back so that the subsequent process can read the content...
> require BufRead instead of Read, or write an extra caution on the document? That'd be the best option imo. I'm not that convinced that the `Seek` requirement is that...
@florian1345 that proposal sounds good! You are welcome to file a PR :).
See also https://github.com/RustAudio/lewton/commit/eb231f72d90e01fa2c0bab59e6cda87a38bf4078
Do you have any real world data that contains `OggS`? Any real world use case? Generally the point of a magic is that it's, well, magic and the sequence that...
Is your proposal to silently ignore hash mismatches and continue the search? What if there is a legitimate hash mismatch then? I think it'd be better to error in that...
> One of the most simple example is when the comment header contains a text "OggS". Hmm that's a good point. During normal operation it's not an issue I guess,...
Yeah there is only limited buffering. Maybe this should be pointed out.
Interesting crate! I'm just a bit worried that it has no users on crates.io apparently. I wonder if there are crates that do the same with more users.
`core_io` is the only one with actual users, but it seems to require nightly, so isn't really an option. What about rolling our own traits? They shouldn't be too complicated.