Struct 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¶
as given to rs_init
variable e¶
correctable symbols, nroots / 2
variable exp¶
a^i, doubled to avoid a modulo
variable gen¶
g(x), gen[i] for x^i
variable k¶
information symbols, n - nroots
variable log¶
log_a, index 0 unused
variable n¶
symbols per codeword, 2^J - 1
The documentation for this class was generated from the following file native/inc/rs/rs_core.h