Skip to main content

encode_chain

Function encode_chain 

Source
pub fn encode_chain(
    bytes: &[u8],
    crc: CrcKind,
    outer: OuterFec,
    inner: InnerFec,
    outer_il: InterleaverKind,
    inner_il: InterleaverKind,
    scrambler: ScramblerKind,
    scrambler_pos: ScramblerPos,
    per_frame_seed: u32,
    cache: &CodecCache,
) -> Vec<u8> 
Expand description

Runs the full encode chain for one logical block (header or payload): bytes → CRC → [scramble if before] → outer → outer-interleave → inner → inner-interleave → [scramble if after], returning coded bits ready to map.