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

Hello, what about inflate / decompress ? #6

Open
Maxzor opened this issue Sep 17, 2020 · 4 comments
Open

Hello, what about inflate / decompress ? #6

Maxzor opened this issue Sep 17, 2020 · 4 comments

Comments

@Maxzor
Copy link

Maxzor commented Sep 17, 2020

Various compression algorithms allow to inflate only passing in the uncompressed size, would be awesome to have it in kaitai.

I am dealing with git packfiles : they are pretty classical bundles of zlib blobs.
The annoying thing is that git stores in these pack files, as a blob header, only the inflated / decompressed size :
deserializing from kaitai needs a dependency on zlib or a simultaneous parsing of the sibling external index file which has bundle offsets.

P.S. : how can I help?

@KOLANICH
Copy link
Contributor

  1. What is your language?
  2. AFAIK inflating doesn't require providing inflated steream size
  3. if your lang is python and you need any additional knobs, see https://github.com/KOLANICH/kaitai_compress/blob/python_fixes/python/kaitai/compress/algorithms/zlib.py if it has what you need

@Maxzor
Copy link
Author

Maxzor commented Sep 18, 2020

I have no target language for now, and am only working through the community-run web-IDE

@Maxzor
Copy link
Author

Maxzor commented Sep 18, 2020

I don't see how you could inflate without providing an inflated nor a deflated stream size?

@KOLANICH
Copy link
Contributor

I don't see how you could inflate without providing an inflated nor a deflated stream size?

Deflated stream size is always provided. In order to process to work blob size must be known.

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

2 participants