ion_rs/binary/constants.rs
1// This module and its contents are visible as a workaround for:
2// https://github.com/amazon-ion/ion-rust/issues/484
3
4/// Constants for Ion v1.0
5pub mod v1_0 {
6 /// Ion Version Marker byte sequence
7 pub const IVM: [u8; 4] = [0xE0, 0x01, 0x00, 0xEA];
8
9 /// Constants for interpreting the length (`L`) code of binary values
10 pub mod length_codes {
11 pub const NULL: u8 = 15;
12 pub const VAR_UINT: u8 = 14;
13 }
14}