Quintus / ruby-xz

Ruby bindings for liblzma, using fiddle
Other
34 stars 8 forks source link

Add methods for determining the approx. (de)compressed size #11

Closed Quintus closed 6 years ago

Quintus commented 9 years ago

It looks as if liblzma has functions that estimate how large the uncompressed data of a compressed archive is, and how large a compressed archive of a given amount of uncompressed data is going to be. These should be made accessible by this binding.

Quintus commented 6 years ago

This turns out to be nontrivial as liblzma only provides internal APIs for this. See https://stackoverflow.com/questions/2171775/how-to-get-the-uncompressed-size-of-an-lzma2-file-xz-liblzma

Thus, this will not be implemented.