Function mm0b_parser::write_cmd_bytes[][src]

pub fn write_cmd_bytes(w: &mut impl Write, cmd: u8, buf: &[u8]) -> Result<()>

This is like [write_cmd], but it is followed by the byte array buf, and the initial data field is the length of the entire expression (the initial command byte, the data field, and the buffer). This can’t be expressed with write_cmd directly because of the circular dependency where the value of data determines the size of the initial command, which affects the value of data.