mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #1017] Fix some IStreamStack and SharpCompressStream functions #1442
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?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/1017
State: closed
Merged: Yes
Buffer handling seems to have been completely broken.
I've fixed the handling in
IStreamStack.StackSeekthat basically duplicated the logic fromSharpCompressStream.Seek(while not actually working correctly), fixed incorrect behavior of theIStreamStack.BufferPositionsetter and fixed and off-by-one inSharpCompressStream.Seek.I suspect there are more issues in
StackSeekthat may or may not even be relevant for how bufferedIStreamStacks are even used. It's hard to tell because the method documentation does not seem to fully match the implementation.This allows reverting #964 now that the underlying issue has been fixed.
TODO: