ps-ecc 0.1.0-9

Generates Reed-Solomon error correction codes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod constants;
mod generator;
mod methods;
mod types;

pub use constants::*;
pub use types::*;

/// A Reed-Solomon codec over GF(256) for codewords of at most 255 bytes.
///
/// The codec is parameterized by its error-correction capability: the
/// number of byte errors it can correct, each costing two parity bytes.
/// Codewords are laid out as `parity || data`.
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct ReedSolomon {
    parity: u8,
}