You are not logged in.
I want to use UnCompressBzMem() from SynBZPas.pas to unpack z .bz2 file. But in order to do so I need to know the last parameter:
DestSize: integer
so the size after unpacking. Where do I get this size from an actual .bz2 file?
Offline
Offline
I just have a standard .bz2 file. So I can't unpack it? Somehow programs like 7zip and WinRAR can unpack this file.
Offline
Maybe uncompressed size is coded in first bytes of file? Try this.
Offline
@jaclas It's impossible:
https://stackoverflow.com/questions/126 … -file-size
Offline
According to the file format defination, we can not get that size before uncompress.
Offline