-
Notifications
You must be signed in to change notification settings - Fork 162
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
Continue reading a stream after ZlibDecoder streams finishes #401
Comments
This should work with Note that the same test does not work for |
#402 adapts the |
Thank you very much for the fast response! It's great the current Have 2 comments:
|
As the original question was answered with tests, I think it's fair to close this issue despite inviting for continuing the conversation here. Regarding documentation, please feel free to open a PR with the improvement to the docs that you would have wanted to see. Maybe you can play around with |
There is an existing discussion on why the |
The docs for bufread and write |
Can you please send me a link to the behavior description? I can't find it :) |
bufread: Lines 171 to 174 in 8a502a7
write: Lines 174 to 176 in 8a502a7
And there is an equivalent paragraph for the Lines 97 to 101 in 8a502a7
|
I'm implementing the parsing of the git pack file format as part of the coding challenge:
https://app.codecrafters.io/courses/git/stages/7
It seems the git pack format is a binary file format where each object contains a header followed by a Zlib compressed stream. What's unpleasant one doesn't know the size of the compressed block. Is it possible to get back the underlying stream (with
into_inner
orget_mut
) including the buffer data byZlibDecoder
so that I can carry on reading another object header?The text was updated successfully, but these errors were encountered: