Open beefnoodles opened 4 years ago
Unfortunately I have some bad news.
The default dictionary size used by 7zip is 16MiB and according to the documentation "For decompressing a file compressed by LZMA method with dictionary size N, you need about N bytes of memory (RAM) available."
It sounds like what you are attempting is just not going to work.
Is that 16MiB uncompressed or compressed with 7z
itself?
I try to add 7z decompress in GodMode9i. Partal function is already complete. but I find that the malloc function always go wrong when alloc big(8MB) memory. The malloc call not return error, but some byte of alloced array is zero. I do some test:
In the output file $ xxd ramtest |grep -B4 "00 00"
Some byte in output file is zero, but after those zero data is right. So file bigger than 3MB can not decompress. $ xxd ramtest |tail -10
Test platform: NDSi 1.4.1J TWiLight Menu++: v15.1.1 nds-bootstrap: v0.35.1