Setting the flag to 0 when decoding fixed the test failure described in #17 for me.
I think it makes somewhat sense to me that this flag is only valid when encoding, but why lzfse would outright fail (and only sometimes!) when it is set is beyond me.
Man really strange bug. the COMPRESSION_STREAM_FINALIZE should normally work in all cases. I fixed it with a little bit more caution in the 3.5.0 release. Thank you very much for your help.
Setting the flag to 0 when decoding fixed the test failure described in #17 for me. I think it makes somewhat sense to me that this flag is only valid when encoding, but why lzfse would outright fail (and only sometimes!) when it is set is beyond me.