libffrs.RSi16¶
- class libffrs.RSi16¶
Reed-Solomon coding over \(GF(65537)\)
Methods
Instantiate a Reed-Solomon encoder with the given configuration
Systematic encode
Reverse Bit Order
Repair a block with the given error locations
Calculate syndromes for the given message and ecc buffers
Attributes
RSi16.block_lenRSi16.block_sizeRSi16.ecc_lenRSi16.ecc_sizeRSi16.gfRSi16.interleaveNumber of interleaved codewords for block encoding
RSi16.message_lenRSi16.message_sizeRSi16.ntt_lenRSi16.ntt_sizeRSi16.rootRSi16.rs_block_lenRSi16.rs_block_sizeRSi16.rs_ecc_lenRSi16.rs_ecc_sizeRSi16.rs_message_lenRSi16.rs_message_sizeRSi16.simd_x16Enable SIMD x16 encoding
RSi16.simd_x4Enable SIMD x4 encoding
RSi16.simd_x8Enable SIMD x8 encoding
- __init__(self: libffrs.RSi16, block_len: SupportsInt | SupportsIndex, ecc_len: SupportsInt | SupportsIndex, interleave: SupportsInt | SupportsIndex = 1, *, primitive: SupportsInt | SupportsIndex = 3, simd_x4: bool | None = None, simd_x8: bool | None = None, simd_x16: bool | None = None) None¶
Instantiate a Reed-Solomon encoder with the given configuration
- encode(self: libffrs.RSi16, buffer: collections.abc.Buffer) bytearray¶
Systematic encode
- rbo(self: libffrs.RSi16, i: SupportsInt | SupportsIndex) int¶
Reverse Bit Order
- repair(self: libffrs.RSi16, message: collections.abc.Buffer, ecc: collections.abc.Buffer, error_pos: collections.abc.Sequence[SupportsInt | SupportsIndex] | None = None) None¶
Repair a block with the given error locations
- synd(self: libffrs.RSi16, message: collections.abc.Buffer, ecc: collections.abc.Buffer) bytearray¶
Calculate syndromes for the given message and ecc buffers