-
Notifications
You must be signed in to change notification settings - Fork 0
Zstandard Compression
Carl Woffenden edited this page Dec 17, 2022
·
1 revision
The entire buffer (including the optional metadata) can be compressed with the -z
option. Since this is a regular Zstd frame it follows the same conventions for loading: call ZSTD_getFrameContentSize()
, which will verify the frame's magic and return the uncompressed size, create a buffer large enough for the content, then call ZSTD_decompress()
to expand the content.
Example code to follow.