Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] why bytes not support std::io::seek trait #566

Open
Ted-Jiang opened this issue Aug 16, 2022 · 1 comment
Open

[Question] why bytes not support std::io::seek trait #566

Ted-Jiang opened this issue Aug 16, 2022 · 1 comment

Comments

@Ted-Jiang
Copy link

I want to skip some bytes when reading.
But i found the 'Bytes' not 'std::io::seek' is there any peculiar reason?
Or any other method 🤔?

@Ted-Jiang Ted-Jiang changed the title [Question] why bytes not support seek trait [Question] why bytes not support std::io::seek trait Aug 16, 2022
@Darksonn
Copy link
Contributor

A Bytes doesn't support seeking backwards, so it can't implement the trait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants