Skip to content

Struct rs_t

ClassList > rs_t

A code plus the tables derived from it. More...

  • #include <rs_core.h>

Public Attributes

Type Name
rs_code_t code
unsigned e
uint8_t exp
uint8_t gen
unsigned k
uint8_t log
unsigned n

Detailed Description

Transparent and allocation-free so a caller can put one on the stack or in its own state, and so the derived sizes are readable without an accessor. Build it with rs_init and then treat it as read-only: it carries no running state, and every function below takes it as const.

Public Attributes Documentation

variable code

rs_code_t rs_t::code;

as given to rs_init


variable e

unsigned rs_t::e;

correctable symbols, nroots / 2


variable exp

uint8_t rs_t::exp[2 *RS_N_MAX];

a^i, doubled to avoid a modulo


variable gen

uint8_t rs_t::gen[RS_NROOTS_MAX+1];

g(x), gen[i] for x^i


variable k

unsigned rs_t::k;

information symbols, n - nroots


variable log

uint8_t rs_t::log[RS_N_MAX+1];

log_a, index 0 unused


variable n

unsigned rs_t::n;

symbols per codeword, 2^J - 1



The documentation for this class was generated from the following file native/inc/rs/rs_core.h