pub fn data_to_write(data: &[u8], out: impl Write) -> Result<usize>
blocking-io
Write a data message to out.
data
out