pub fn write_data<W: Write>(buffer: &[u8], writer: &mut W) -> LinderaResult<()>
Write data directly to the writer.