Skip to main content

encode_mcoded7

Function encode_mcoded7 

Source
pub fn encode_mcoded7(data: &[u8], out: &mut [u8]) -> usize
Expand description

Encode data using mcoded7 (MIDI-CI spec): every 7 input bytes → 8 output bytes. The first byte of each group carries the high bits (bit 7) of the following 7 bytes. Returns the number of bytes written to out.