Skip to main content

pack_septets

Function pack_septets 

Source
pub fn pack_septets(septets: &[u8], fill_bits: u8) -> Vec<u8> ⓘ
Expand description

Pack septets after fill_bits zero bits. When the last octet has 7 spare bits they carry a CR; when the text ends with CR exactly on an octet boundary another CR is appended, so the receiver can tell padding from data.