1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
mod document;
pub use document::Document;
mod directory;
pub use directory::Directory;
mod directory_entry;
pub use directory_entry::DirectoryEntry;
mod file_control_field;
pub use file_control_field::{FileControlField, TagPair};
mod data_descriptive_field;
pub use data_descriptive_field::{
DataDescriptiveField, DataStructure, DataType, FieldControls, LexicalLevel,
};
mod leader;
pub use leader::DDRLeader;
mod errors;
pub use errors::ReadError;
mod reader;
pub use reader::{ReadResult, Reader};
const FIELD_TERMINATOR: u8 = 0x1e;
const UNIT_TERMINATOR: u8 = 0x1f;
const NULL: u8 = 0x00;