10XGenomics / lz4-rs

Rust LZ4 bindings
MIT License
46 stars 28 forks source link

Attempt to add content_size. #23

Closed anthonyjchriste closed 5 months ago

anthonyjchriste commented 2 years ago

This PR adds the content_size field (which stores the size of the uncompressed data) which is available in the LZ4 definition (https://github.com/lz4/lz4/blob/d44371841a2f1728a3f36839fd4b7e872d0927d3/lib/lz4frame.h#L180), but was not available in lz4-sys or the lz4 library.

Happy to work with you to tweak this to your standards. Please let me know if there is any way to improve upon this.

pmarks commented 5 months ago

@anthonyjchriste thanks! I fixed up and merged in #44.