Skip to main content

write_dds_to_vec

Function write_dds_to_vec 

Source
pub fn write_dds_to_vec(dds: &Dds) -> Result<Vec<u8>, DdsBinaryError>
Expand description

Serializes DDS data to a byte vector.

ยงErrors

DdsBinaryError::InvalidHeader on the terms write_dds gives, and DdsBinaryError::Ddsfile from encoding a standard container. The Vec target has no I/O to fail at.