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

Added info about bytes 0x78 0x9c #41

Open
ResaloliPT opened this issue Apr 8, 2024 · 0 comments
Open

Added info about bytes 0x78 0x9c #41

ResaloliPT opened this issue Apr 8, 2024 · 0 comments

Comments

@ResaloliPT
Copy link

First of all, thank you very much for the awsome readme, it was a enormous help understanding UE4 paks.

Now, under 3.4 Data record on the readme there's a note relating to the 0x78 0x9c, since i´m making a C# implementation on my end.
I've learned what those bytes are, they are part of the zLib header (declaring compression level 6 which is the default).

More about that can be found here https://yal.cc/cs-deflatestream-zlib/

Each chunk located in file data inside a Data record will be the following format 2 bytes for the zLib header (0x78 0x9c normaly) then the compressed data and finally 2 bytes that contain a Adler-32 checksum of the compressed data.

Can also share:
My C# Implementation of V3 pak

zLib chunk compressor

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