msla_format 0.2.0

Library for encoding and decoding various MSLA file formats: Elegoo (.goo), Chitu Encrypted (.ctb), NanoDLP (.nanodlp).
Documentation
//! Elegoo format V3.0 (`.goo`).
//!
//! ## References
//!
//! - [Official Format Spec](https://github.com/elegooofficial/GOO)

mod default;
mod encoded_layer;
mod file;
mod header;
mod layer_content;
mod preview_image;

pub use encoded_layer::{LayerDecoder, LayerEncoder};
pub use file::File;
pub use header::{ExposureDelayMode, Header};
pub use layer_content::Layer;
pub use preview_image::PreviewImage;

const ENDING_STRING: &[u8] = &[
    0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x44, 0x4C, 0x50, 0x00,
];
const MAGIC_TAG: &[u8] = &[0x07, 0x00, 0x00, 0x00, 0x44, 0x4C, 0x50, 0x00];
const DELIMITER: &[u8] = &[0xD, 0xA];