jmeaster30 / MyLib

A C# library with some random stuff in it
MIT License
0 stars 0 forks source link

Lz77 Compression Last Byte wrong #1

Open jmeaster30 opened 1 year ago

jmeaster30 commented 1 year ago

The last byte is sometimes wrong. Currently, when we output the byte from the "nextChar" variable it can be a zero byte when there is no next character however a byte string may just have null byte at the end of the byte stream.

We can't just ignore the last byte being decoded because it could be a valid byte we need