mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
BrotliDecompressStream not decrementing available_in #126
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jeroen on GitHub (Jul 31, 2016).
For the new version of the R bindings I am switching to
BrotliDecompressStreambecause this is whatbrois using so I guess this part of the API should work. Two questions:BrotliDecoderDecompressStream?However if I look at my debugging output it seems that the first few iterations
available_inis not being decremented, even thoughtotal_outis growing andnext_inis moving.@eustas commented on GitHub (Aug 3, 2016):
Hello.
BrotliDecompressStream and BrotliDecoderDecompressStream are the same, except the position of "state" argument.
Decoder has internal storage - "ring buffer". In your example it seems to be 4MB, so in given example lines 2-5 do not consume more input, because there is some pending output in "ring buffer". I suppose that the whole compressed file is bigger than 5355157 bytes...
@eustas commented on GitHub (Aug 22, 2016):
No feedback for 19 days; feel free to reopen if some concerns still remain.