ps_ecc/reed_solomon/mod.rs
1mod constants;
2mod generator;
3mod methods;
4mod types;
5
6pub use constants::*;
7pub use types::*;
8
9/// A Reed-Solomon codec over GF(256) for codewords of at most 255 bytes.
10///
11/// The codec is parameterized by its error-correction capability: the
12/// number of byte errors it can correct, each costing two parity bytes.
13/// Codewords are laid out as `parity || data`.
14#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
15pub struct ReedSolomon {
16 parity: u8,
17}