Repository navigation
Conversation
Prepare internal block decoding for a streaming public API while keeping the public surface unchanged.
Preserve consumed offsets when tag decoding fails and reject literals that exceed the declared output length.
Expose stable encoder and decoder wrappers while keeping codec internals free to evolve. Refs brantburnett#148
Track the maximum used range across Reset calls so pooled buffers never retain prior plaintext after a smaller block.
thomhurst
force-pushed
the
reusable-block-codec-api
branch
from
August 31, 2026 14:28
deee569 to
743fc3b
Compare
7 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack
Depends on #149. This branch is the second layer of the local
gh stack:OperationStatusrefactoringGitHub native stack linking does not support cross-fork PRs. Until #149 merges, the focused second-layer diff is available in this branch comparison. Once #149 lands, this PR's GitHub diff will automatically contain only this public API layer.
Summary
SnappyBlockEncoderwith span and sequence-to-writer compressionSnappyBlockDecoderwith incrementalOperationStatusdecompressionNeedMoreData,DestinationTooSmall,Done, and persistentInvalidDatastatesReset()between incremental blocks; sequence-to-writer calls reset automaticallyThis is the public API follow-up discussed in #148 while leaving
SnappyCompressorandSnappyDecompressorinternal.Validation
dotnet build Snappier.slnx --configuration Release: 0 warnings/errors1.3.2)