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

Feature request: seek() #91

Open
alexpineda opened this issue Sep 23, 2020 · 2 comments
Open

Feature request: seek() #91

alexpineda opened this issue Sep 23, 2020 · 2 comments

Comments

@alexpineda
Copy link

Like consume() but you can seek backwards. Eg. seek(10), seek(0).

@rvagg
Copy link
Owner

rvagg commented Sep 23, 2020

maybe shallowSlice() would serve this purpose well enough? Have you tried to apply it where you have this use-case?

@alexpineda
Copy link
Author

I did. It works at the cost of added noise, meaning I have to assign the shallow copy to a variable and then work with that, rather than single BufferList. All in all though it's acceptable 👍

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