async fn write_to_compressed_writer(
compressed_writer: &mut CompressedWriter,
data: &[u8],
) -> Result<()>Expand description
Writes data to a compressed writer if the data is not empty.
Does nothing if data is empty; otherwise writes all data and returns any error.