//Podobne kody (<> rozmiar slowa)
//Status tego co się udalo zrobić w dokumencie
// TransmissionSimulator ts = new TransmissionSimulator(18, TransmissionSimulator.ErrorScope.CORRECTION_PART_SIZE, BCHCode.BCH_255_131);
// encoded = ts.transmitData(encoded);
BCHDecoder decoder = new BCHDecoder(BCHCode.BCH_255_131, true);
start = System.currentTimeMillis();
byte[] decoded;
try {
decoded = decoder.decode(encoded);
} catch (UncorrectableErrorsException ex) {
System.err.println("Uncorrectable errors found in received code words!");
return;
}
stop = System.currentTimeMillis();