Skip to content

Retrieve decoded size from snappy encoded data without decoding #488

Answered by klauspost
tanner-bruce asked this question in Q&A
Discussion options

You must be logged in to vote

For snappy blocks you can use DecodedLen.

For streams you can use IndexStream which you can Load to get the TotalUncompressed size.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tanner-bruce
Comment options

Answer selected by klauspost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #487 on February 03, 2022 08:24.