[DiscordArchive] doesn't compressed headers usually include a few bytes to describe it ?
[DiscordArchive] doesn't compressed headers usually include a few bytes to describe it ?
Archived author: Titi • Posted: 2025-02-14T23:29:16.251000+00:00
Original source
doesn't compressed headers usually include a few bytes to describe it ?
![[Image: image.png?ex=690c86f5&is=690b3575&hm=84c...195215990&]](https://cdn.discordapp.com/attachments/1086807686571642900/1340103034432389130/image.png?ex=690c86f5&is=690b3575&hm=84c016d71c6c74d91bdeca1cb21dfb3e646d6bb979651d62fb9c913195215990&)
Archived author: Titi • Posted: 2025-02-14T23:31:01.442000+00:00
Original source
I remember that from BLS files
![[Image: image.png?ex=690c86f5&is=690b3575&hm=84c...195215990&]](https://cdn.discordapp.com/attachments/1086807686571642900/1340103034432389130/image.png?ex=690c86f5&is=690b3575&hm=84c016d71c6c74d91bdeca1cb21dfb3e646d6bb979651d62fb9c913195215990&)
Archived author: Titi • Posted: 2025-02-14T23:31:24.699000+00:00
Original source
maybe there's extra info like mode, version etc if you're lucky
![[Image: image.png?ex=690c87e3&is=690b3663&hm=d95...3f229518c&]](https://cdn.discordapp.com/attachments/1086807686571642900/1340104035293724775/image.png?ex=690c87e3&is=690b3663&hm=d95d6490eacbc42fbe0695ccd53fe8d431537705a4d5e8d54a17d003f229518c&)
Archived author: 4bhorrent • Posted: 2025-02-14T23:34:59.991000+00:00
Original source
![[Image: image.png?ex=690c87e3&is=690b3663&hm=d95...3f229518c&]](https://cdn.discordapp.com/attachments/1086807686571642900/1340104035293724775/image.png?ex=690c87e3&is=690b3663&hm=d95d6490eacbc42fbe0695ccd53fe8d431537705a4d5e8d54a17d003f229518c&)
Archived author: 4bhorrent • Posted: 2025-02-14T23:36:08.386000+00:00
Original source
i am using `flate2` for it in Rust.
with the feature `zlib` it compiles a C library for linking against it, and with the compression setting 6 (default) it now produces a byte exact copy.
just if anyone else ever stumbles upon it, here you have it XD
Archived author: 4bhorrent • Posted: 2025-02-14T23:37:28.166000+00:00
Original source
never knew that different implementations produced different output for the seemingly same settings (but on the other hand no wonder, compression setting is only a subset of settings of the algorithm... many might not be exposed in a library for usage).
Archived author: 4bhorrent • Posted: 2025-02-14T23:38:47.992000+00:00
Original source
zlib itself seems to have a 2 byte header at the start... but i know too little to say anything concrete about it.
Archived author: stoneharry • Posted: 2025-02-14T23:39:53.974000+00:00
Original source
is compression even 100% determinstic? I'm not sure if you will get what you want
Archived author: Titi • Posted: 2025-02-14T23:39:57.834000+00:00
Original source
https://github.com/libyal/assorted/blob/...t.asciidoc maybe
Archived author: 4bhorrent • Posted: 2025-02-14T23:40:11.174000+00:00
Original source
yes, at least most certainly for lossless compression