ReedSolomonCodec

Reed-Solomon codec for 8-bit characters.

Based on libfec by Phil Karn, KA9Q.

Constructors

this
this(int symbolSize_, int gfPoly_, int firstRoot_, int primitive_, int numRoots_, int padding_)

Creates a new reed solomon instance.

Members

Functions

encode
void encode(int[] data, int[] parity)

Encodes data and writes result back into parity array.

modNn
int modNn(int x)

Computes x % GF_SIZE, where GF_SIZE is 2**GF_BITS - 1, without a slow divide.

Variables

_indexOf
int[] _indexOf;
Undocumented in source.
alphaTo
int[] alphaTo;
blockSize
int blockSize;
firstRoot
int firstRoot;
generatorPoly
int[] generatorPoly;
iPrimitive
int iPrimitive;
numRoots
int numRoots;
padding
int padding;
primitive
int primitive;
Undocumented in source.
symbolSize
int symbolSize;
Undocumented in source.

Meta