[][src]Function isa_l::ec_init_tables

pub fn ec_init_tables(
    k: usize,
    rows: usize,
    encode_matrix: impl AsRef<[u8]>,
    buf: impl AsMut<[u8]>
)

Initialize tables for fast Erasure Code encode and decode.

Generates the expanded tables needed for fast encode or decode for erasure codes on blocks of data. 32 bytes is generated for each input coefficient.

Arguments:

  • k: Number of vector sources or rows in the generator matrix for coding.
  • rows: Number of output vectors to concurrently encode/decode.
  • encode_matrix: Input coefficients used to encode or decode data.
  • buf: Buffer to write the concatenated output tables generated from input coefficients to. Must be of length 32 * k * rows.

Panics:

If the length of encode_matrix is not k * rows or the length of buf is not 32 * k * rows.