Skip to content

Encoding/Decoding failing with -w 10 #93

Description

@svoulaz

Hello - and thank you for the nice work!
I was planning to use the library in an embedded project, but trying it on desktop (develop branch built under wsl) I soon found a case in which encoding and decoding are not symmetrical.

Given the attached file, the compression output is as follows:
./heatshrink -e -v -w 10 test_input.dmp test_output.dmp
../test_input.dmp 46.42 % 153374 -> 82185 (-w 10 -l 4)

The subsequent decode output is as follows:
./heatshrink -d -v test_output.dmp decode_output.dmp
test_output.dmp -171.27 % 82185 -> 222945 (-w 11 -l 4)

The decoded file is indeed very different from the original file.
Am I missing something?

BR

test_input.dmp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions