Hello Casey,
Based on my understanding, you encountered an error (-1) while using ‘BHCEncoder' and ‘BHCDecoder’ to encode and decode a message. However, despite the error, you noticed that the decoded message matches the input message.
It is important to note that although the size and matching of the data output are correct, it does not guarantee that the decoded output is completely error-free.
To further investigate the issue, I recommend examining the specific values of the 'err' variable and comparing the decoded message with the original message. If there are considerable number of corrected errors or if you observe decoding errors indicated by -1 values in 'err', it may indicate potential issues with the received codeword or the decoding process.
I hope this explanation helps you in troubleshooting the situation
Best regards,
Sachin