Skip to main content

encode

Function encode 

Source
pub fn encode(
    code: &LdpcCode,
    info: &[u8],
    output: &mut [u8],
) -> Result<(), LdpcError>
Expand description

Encodes information bits into a systematic LDPC codeword.

info has k/8 bytes of data. output receives n/8 bytes (info followed by parity).