lance_encoding::repdef

Function build_control_word_iterator

Source
pub fn build_control_word_iterator<'a>(
    rep: Option<&'a [u16]>,
    max_rep: u16,
    def: Option<&'a [u16]>,
    max_def: u16,
) -> ControlWordIterator<'a>
Expand description

Builds a ControlWordIterator from repetition and definition levels by first calculating the width needed and then creating the iterator with the appropriate width