tomerfiliba-org/reedsolomon

How to manage shifting?

Closed this issue · 2 comments

In a sequence, I can have one or more byte disappear or appear, thus shifting the whole sequence.

For example :

from reedsolo import RSCodec, ReedSolomonError

rsc = RSCodec(12) 
p = rsc.encode(b 'hello world')

# remove symbol 4th
del p[4]
rsc.decode(p) # doesht work

is there a way the manage this kind of error ?

in reality, it's at the level of the binary sequence that I have the addition and deletion of a bit.
If you have any ideas in both case, I'd love to hear from you.