mod container;
mod header;
pub(crate) mod streams;
pub fn write_document(
doc: &super::WriterDocument,
config: &super::WriterConfig,
) -> crate::core::result::Result<Vec<u8>> {
if doc.version != crate::dwg::version::DwgVersion::R2018 {
return Err(crate::core::error::DwgError::new(
crate::core::error::ErrorKind::Unsupported,
"r2018 writer requires AC1032",
));
}
super::encoder::encode_document(doc, config)?.into_bytes()
}
pub(crate) use container::write_container;
pub(crate) use header::encode_header;