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

Commits on Jan 13, 2021

  1. s2: Add ReaderMaxBlockSize

    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.
    klauspost committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    b0d63b3 View commit details
    Browse the repository at this point in the history