noodles_cram/
data_container.rspub mod block_content_encoder_map;
pub(crate) mod builder;
pub mod compression_header;
mod header;
mod reference_sequence_context;
pub(crate) mod slice;
pub use self::{
block_content_encoder_map::BlockContentEncoderMap, compression_header::CompressionHeader,
slice::Slice,
};
pub(crate) use self::{
builder::Builder, header::Header, reference_sequence_context::ReferenceSequenceContext,
};
pub struct DataContainer {
compression_header: CompressionHeader,
slices: Vec<Slice>,
}
impl DataContainer {
pub(crate) fn builder(record_counter: u64) -> Builder {
Builder::new(record_counter)
}
pub(crate) fn new(compression_header: CompressionHeader, slices: Vec<Slice>) -> Self {
Self {
compression_header,
slices,
}
}
pub fn compression_header(&self) -> &CompressionHeader {
&self.compression_header
}
pub fn slices(&self) -> &[Slice] {
&self.slices
}
}