Skip to main content

outer_encode

Function outer_encode 

Source
pub fn outer_encode(
    outer: OuterFec,
    message_bytes: &[u8],
    cache: &CodecCache,
) -> Vec<u8> 
Expand description

Encodes message_bytes through the outer code (byte domain), returning the coded bits (MSB-first). The message bit stream is fragmented into BCH_INFO_BITS-bit blocks, each encoded into one shortened BCH codeword; the final block is zero-padded. None outer code passes the bytes through as bits.