BchCode class

A primitive, narrow-sense binary BCH code descriptor.

The descriptor provides generator-polynomial construction and a systematic software encoder. Hardware encoder and decoder stages can reuse the same descriptor and independently compare against encode.

Constructors

BchCode({required BinaryExtensionField field, required int designedDistance, int firstRoot = 1, int shortening = 0})
Creates a BCH code descriptor.

Properties

configurationSignature → String
Identifier for RTL built from this code geometry and field.
no setter
designedDistance → int
The designed minimum distance.
final
field → BinaryExtensionField
The extension field used to define the BCH roots.
final
firstRoot → int
The exponent of the first consecutive BCH root.
final
fullLength → int
The unshortened parent BCH code length.
latefinal
generatorPolynomial → BinaryPolynomial
The generator polynomial over GF(2).
latefinal
hashCode → int
The hash code for this object.
no setterinherited
length → int
The code length 2^m - 1.
latefinal
messageBits → int
The number of systematic message bits.
no setter
parityBits → int
The number of parity bits.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortening → int
Number of leading information/codeword positions shortened away.
final

Methods

decode(BigInt received, {int? correctionCapacity}) → BchDecodeResult
Decodes up to the BCH correction capacity using Berlekamp--Massey and Chien search.
decodeSingleError(BigInt received) → BchDecodeResult
Decodes zero or one bit error and reports other patterns as uncorrectable.
encode(BigInt message) → BigInt
Encodes a message polynomial systematically.
errorLocator(BigInt received, {int? correctionCapacity}) → BchErrorLocator
Builds an error-locator polynomial from received-word syndromes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
syndromes(BigInt codeword) → List<GfValue>
Evaluates the consecutive BCH syndromes of a received codeword.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited