fid_rs/fid/chunk.rs
1use super::{Blocks, Chunk};
2use crate::internal_data_structure::raw_bit_vector::RawBitVector;
3
4impl super::Chunk {
5 /// Constructor.
6 pub fn new(value: u64, length: u16, rbv: &RawBitVector, i_chunk: u64) -> Chunk {
7 let blocks = Blocks::new(rbv, i_chunk, length);
8 Chunk {
9 value,
10 blocks,
11 }
12 }
13
14 /// Returns the content of the chunk.
15 pub fn value(&self) -> u64 {
16 self.value
17 }
18}