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};

/// binary value for ISO8211 field terminator
const FIELD_TERMINATOR: u8 = 0x1e;

/// binary value for ISO8211 unit terminator
const UNIT_TERMINATOR: u8 = 0x1f;

/// binary value for null
const NULL: u8 = 0x00;