alexcrichton / xz2-rs

Bindings to liblzma in Rust (xz streams in Rust)
Apache License 2.0
81 stars 52 forks source link

Is it possible to get metadata of decompressed vs compressed size? #95

Open kszlim opened 2 years ago

kszlim commented 2 years ago

Similar to how xz can produce:

xz -l data.xz 
Strms  Blocks   Compressed Uncompressed  Ratio  Check   Filename
    1     164    294.5 MiB  9,155.0 MiB  0.032  CRC64   data.xz

The decompressed size and ratio would be useful to me, is there any way of exposing this data?

Ayush1325 commented 1 month ago

See https://github.com/Portable-Network-Archive/liblzma-rs/pull/117