Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reading the uncompressed size from the header #14

Open
rBirde opened this issue Apr 29, 2021 · 1 comment
Open

reading the uncompressed size from the header #14

rBirde opened this issue Apr 29, 2021 · 1 comment

Comments

@rBirde
Copy link

rBirde commented Apr 29, 2021

Thank you very much for providing this quite useful library. I am writing an Android program in which I need to decompress random lzo files. I am reading the uncompressed byte arrays from lzo files using LzopInputstream for the files that I know the size of the uncompressed byte array. I am wondering if you know the header structure or how could the uncompressed size be read from the header of an lzo file? I know it should be written in the header file because using "lzop --info filename" on Ubuntu returns some info about the file one of which is the uncompressed size.
If the uncompressed size could be read from the header in Java, then the program could decompress any lzo file without the user knowing the uncompressed size of the file.

Thank you!

@rBirde
Copy link
Author

rBirde commented Jun 14, 2021

Hi,

Is there any way to read the uncompressed byte size from an lzop compressed file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant