dart_reed_solomon_nullsafety 0.2.0 copy "dart_reed_solomon_nullsafety: ^0.2.0" to clipboard
dart_reed_solomon_nullsafety: ^0.2.0 copied to clipboard

Reed–Solomon error correction. Forked from dart_reed_solomon to add sound null safety.

example/lib/main.dart

import 'package:dart_reed_solomon/dart_reed_solomon.dart';

void main() {
  List<int> messageIn, messageOut;

  ReedSolomon reedSolomon = ReedSolomon(
    symbolSizeInBits: 6,
    numberOfCorrectableSymbols: 6,
    primitivePolynomial: 67,
    initialRoot: 1,
  );

  // ENCODER
  try {
    messageIn = [8, 32, 22, 28, 24, 57, 33, 50, 46, 46, 38, 8, 32];
    messageOut = reedSolomon.encode(messageIn); 
  } on ReedSolomonException catch(e) {
    // TODO: implement catch
  }

  // DECODER
  try {
    messageIn = [8, 32, 22, 28, 24, 57, 33, 50, 46, 46, 38, 8, 32, 35, 13, 8, 7, 31, 6, 49, 29, 52, 31, 43, 16];
    messageOut = reedSolomon.decode(messageIn); 
  } on ReedSolomonException catch(e) {
    // TODO: implement catch
  } 

}
0
likes
110
pub points
48%
popularity

Publisher

unverified uploader

Reed–Solomon error correction. Forked from dart_reed_solomon to add sound null safety.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on dart_reed_solomon_nullsafety