@bspbsp
What do you exactly mean with "2.". I don't understand, sorry.
When I get 32 bits from infile before decoding it, the decompressed file has the same size as the decompressed file produced by ficedulas lzs.exe.
When I put 32 bits to outfile before encoding the infile into it, it ends up with a different size as the original LZS file.