mirror of
https://github.com/facebook/zstd.git
synced 2025-07-28 00:01:53 +03:00
In main, resources were freed on the success path but not in the error path. This change ensures all allocated resources are released before returning.
externalSequenceProducer
externalSequenceProducer
is a test tool for the Block-Level Sequence Producer API.
It demonstrates how to use the API to perform a simple round-trip test.
A sample sequence producer is provided in sequence_producer.c, but the user can swap this out with a different one if desired. The sample sequence producer implements LZ parsing with a 1KB hashtable. Dictionary-based parsing is not currently supported.
Command line :
externalSequenceProducer filename