pub fn encode(data: &[u8], output: &mut [u8]) -> Result<usize, ConvError>Expand description
Encodes data using the rate-1/2, K=7 convolutional code.
Appends K−1 = 6 zero tail bits to terminate the trellis. Output symbols are packed MSB-first: for each input bit the G1 symbol comes first, then G2.
Returns the number of bytes written to output.