$symbolSize
$symbolSize : int
Symbol size in bits.
Reed-Solomon codec for 8-bit characters.
Based on libfec by Phil Karn, KA9Q.
$symbolSize : int
Symbol size in bits.
$blockSize : int
Block size in symbols.
$firstRoot : int
First root of RS code generator polynomial, index form.
$primitive : int
Primitive element to generate polynomial roots, index form.
$iPrimitive : int
Prim-th root of 1, index form.
$numRoots : int
RS code generator polynomial degree (number of roots).
$padding : int
Padding bytes at front of shortened block.
__construct(int $symbolSize, int $gfPoly, int $firstRoot, int $primitive, int $numRoots, int $padding) : mixed
int | $symbolSize | |
int | $gfPoly | |
int | $firstRoot | |
int | $primitive | |
int | $numRoots | |
int | $padding |
if symbol size ist not between 0 and 8
if first root is invalid
if num roots is invalid
if padding is invalid
if field generator polynomial is not primitive