Closed ikrivosheev closed 9 months ago
@Lonami thank you for the review! Well, bug was in re-align buffer. I removed it from Bitstream::read_raw
and added it in Lzxd::decompress_next
like in other implementations and it starts working!!
Now it's ready for review and merge. It's work. I checked it on my computer.
I fixed the issue: https://github.com/Lonami/lzxd/issues/21
I read source code gcab and libmspack and find an interesting thin. After Uncompressed block if length is not Odd then re-align the bitstream.
Also I added:
#[derive(Copy, Clone, Debug, Eq)]
toDecompressError
andDecodeFailed