Thanks Stef, I imagine that sven did not add it because on infinite stream it does not
make sense.
Just to clarify my earlier email, I got here was by calling `'/path/to/some/file' asFileReference binaryReadStream` which responds with the ZnBufferedReadStream. I expected to be able to use something like #upToAll: to find binary-formatted headers etc within some encoding structure. It's entirely possible that this was the wrong expectation! On Sun, Mar 17, 2019 at 10:38 AM ducasse <stepharo@netcourrier.com> wrote:
Hi eric
Hi all,
Was there a conscious decision not to include the #upToAll: method onZnBufferedReadStream?. This method is really useful for parsing files -- finding sub-patterns of bytes, etc. Perhaps #upToAll: is not the idiomatic way to do this, but I found it very useful to use in the plain old ReadStream classes.
I imagine that sven did not add it because on infinite stream it does not make sense. Now it would be good to see how we can have useful extensions. But I let this to sven.
Sub-question: if I wanted to implement something like this and make a
PR, would I be submitting to the Pharo dev repository or the Zinc repository?
Right now to sven repo. In the future we want to have better tools to sync back from a project to its components.
Stef
-- Eric
-- Eric