seq-data-file 0.2.1

simple sequential data file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Format configuration for SeqData
pub trait SeqDataFormat {
    /// Magic bytes. can be empty
    const MAGIC: &'static [u8];
    /// The size of the header in bytes
    const HEADER_SIZE: usize;
}

pub struct NoMagicNoHeader;

impl SeqDataFormat for NoMagicNoHeader {
    const MAGIC: &'static [u8] = &[];
    const HEADER_SIZE: usize = 0;
}