bl icon indicating copy to clipboard operation
bl copied to clipboard

Feature request: seek()

Open alexpineda opened this issue 5 years ago • 2 comments

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

alexpineda avatar Sep 23 '20 04:09 alexpineda

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

rvagg avatar Sep 23 '20 05:09 rvagg

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 👍

alexpineda avatar Sep 23 '20 20:09 alexpineda