Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for binary 1.1 reader #737

Merged
merged 17 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/lazy_read_all_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod lazy_reader_example {

use memmap::MmapOptions;

use ion_rs::lazy::r#struct::LazyBinaryStruct;
use ion_rs::lazy::r#struct::LazyBinaryStruct_1_0 as LazyBinaryStruct;
use ion_rs::lazy::reader::LazyBinaryReader;
use ion_rs::lazy::value::LazyBinaryValue;
use ion_rs::lazy::value_ref::ValueRef;
Expand Down
5 changes: 5 additions & 0 deletions src/binary/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ pub mod v1_0 {
pub const VAR_UINT: u8 = 14;
}
}

pub mod v1_1 {
/// Ion Version Marker byte sequence
pub const IVM: [u8; 4] = [0xE0, 0x01, 0x01, 0xEA];
}
Loading
Loading