decode method
Decodes given set of received codewords, which include both data and error-correction codewords. Really, this means it uses Reed-Solomon to detect and correct errors, in-place, in the input.
@param received data and error-correction codewords @param twoS number of error-correction codewords available @throws ReedSolomonException if decoding fails for any reason
Implementation
void decode(List<int> received, int twoS) =>
decodeWithECCount(received, twoS);