Skip to content

Testing validity of the data without the actual decompression #390

@nyurik

Description

@nyurik

My sqlite-compression extension needs to support gzip testing in addition to compression/decompression. Currently I do it with decode(data).is_ok(), but that causes a lot of unnecessary memory allocation and possibly other steps. Is there a way to efficiently validate the content of the gzip stream without allocating/re-allocating output buffers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions