Skip to content
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

s2: Add ReaderMaxBlockSize #311

Merged
merged 1 commit into from
Jan 13, 2021
Merged

s2: Add ReaderMaxBlockSize #311

merged 1 commit into from
Jan 13, 2021

Conversation

klauspost
Copy link
Owner

ReaderMaxBlockSize allows to control allocations if the stream
has been compressed with a smaller WriterBlockSize, or with the default 1MB.

Blocks must be this size or smaller to decompress,
otherwise the decoder will return ErrUnsupported.

Fixes incorrect validation of WriterBlockSize parameter.

Changes NewReader to take options as varargs.

ReaderMaxBlockSize allows to control allocations if the stream
has been compressed with a smaller WriterBlockSize, or with the default 1MB.

Blocks must be this size or smaller to decompress,
otherwise the decoder will return ErrUnsupported.

Fixes incorrect validation of WriterBlockSize parameter.

Changes NewReader to take options as varargs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant