mod decoder;
mod error;
mod format;
mod sections;
mod string_table;
mod view;
mod writer;
pub use decoder::{decode_snapshot, decode_snapshot_owned};
pub use error::{DecodeError, DecodeErrorCode, SnapshotWriteError, SnapshotWriteErrorCode};
pub use format::{
RootId, SectionKind, StringId, DIAGNOSTIC_LABEL_RECORD_SIZE, DIAGNOSTIC_RECORD_SIZE,
EDGE_KIND_NODE, EDGE_KIND_TOKEN, EDGE_RECORD_SIZE, EXTENDED_DATA_HEADER_SIZE, HEADER_SIZE,
NODE_RECORD_SIZE, NONE_REF, ROOT_RECORD_SIZE, SECTION_ALIGNMENT, SECTION_FLAG_REQUIRED,
SECTION_RECORD_SIZE, SNAPSHOT_FEATURE_FLAGS, SNAPSHOT_MAGIC, SNAPSHOT_MAJOR_VERSION,
SNAPSHOT_MINOR_VERSION, SOURCE_RECORD_SIZE, STRING_OFFSET_RECORD_SIZE, TOKEN_RECORD_SIZE,
TRIVIA_RECORD_SIZE,
};
pub use view::{
ChildIter, ChildView, DiagnosticIter, DiagnosticLabelIter, DiagnosticLabelView,
DiagnosticRecordView, NodeView, RootView, SectionIndex, SectionSlice, SectionView,
SnapshotView, SnapshotViewOwned, SourceTextUnavailable, SourceView, TokenView, TriviaIter,
TriviaView,
};
pub use writer::{
parse_batch_result_to_snapshot, parse_batch_to_snapshot, parse_message_to_snapshot,
parse_result_to_snapshot, parse_session_to_snapshot, parse_source_to_snapshot,
BatchSnapshotResult, SnapshotOptions, SnapshotResult, SnapshotSourceMetadata,
};