lxdb-format 0.1.0

Binary format records and sections for LXDB datasets.
Documentation
1
2
3
4
5
6
7
8
use crate::FormatError;

/// A fixed-size record encoded in the LXDB binary format.
pub trait BinaryRecord: Sized {
    const SIZE: usize;

    fn decode(bytes: &[u8]) -> Result<Self, FormatError>;
}