1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Reed-Solomon error-correcting codes over GF(256).
//!
//! The crate offers three layers of API:
//!
//! - The free functions [`encode`], [`decode`], and [`validate`] pick the
//! appropriate format automatically: messages that fit a single
//! Reed-Solomon codeword (at most `255 - 2 * parity` bytes) are encoded
//! directly, and longer messages use the long ECC format, which splits
//! the message into segments of at most 255 bytes behind a checksummed
//! header.
//! - [`ReedSolomon`] encodes, validates, and corrects single codewords,
//! either attached (`parity || data` in one slice) or detached (parity
//! and data as separate slices).
//! - [`Polynomial`] and [`euclidean`] expose the underlying GF(256)
//! polynomial arithmetic.
//!
//! The `parity` count parameter is the error-correction capability: the
//! number of byte errors a codeword can recover from, each costing two
//! parity bytes. It is capped at [`MAX_PARITY`] (63). The detached APIs
//! instead take the generated parity bytes themselves, capped at
//! [`MAX_PARITY_BYTES`] (126).
pub use Codeword;
pub use Cow;
pub use *;
pub use euclidean;
pub use ;
pub use *;
pub use Polynomial;
pub use *;