Skip to content

s2: Add ReaderMaxBlockSize#311

Merged
klauspost merged 1 commit intomasterfrom
s2-decoder-maxblocksize
Jan 13, 2021
Merged

s2: Add ReaderMaxBlockSize#311
klauspost merged 1 commit intomasterfrom
s2-decoder-maxblocksize

Conversation

@klauspost
Copy link
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant