pub(crate) fn write_bytes( output: &mut (impl Write + ?Sized), bytes: &[u8], ) -> Result<usize>
Write all bytes to the output, returning the number of bytes written.