pub fn split_buffer(page: &DataPage) -> (&[u8], &[u8], &[u8]) {
    match page.header() {
        DataPageHeader::V1(_) => split_buffer_v1(
            page.buffer(),
            page.descriptor.max_rep_level > 0,
            page.descriptor.max_def_level > 0,
        ),
        DataPageHeader::V2(header) => {
            let def_level_buffer_length = header.definition_levels_byte_length as usize;
            let rep_level_buffer_length = header.repetition_levels_byte_length as usize;
            split_buffer_v2(
                page.buffer(),
                rep_level_buffer_length,
                def_level_buffer_length,
            )
        }
    }
}
/// Splits the page buffer into 3 slices corresponding to (encoded rep levels, encoded def levels, encoded values).
Splits the page buffer into 3 slices corresponding to (encoded rep levels, encoded def levels, encoded values).
Splits the page buffer into 3 slices corresponding to ( encoded rep levels encoded def levels encoded values ) .
pub fn split_buffer(page: &DataPage) -> (&[u8], &[u8], &[u8]) {
    match page.header() {
        DataPageHeader::V1(_) => split_buffer_v1(
            page.buffer(),
            page.descriptor.max_rep_level > 0,
            page.descriptor.max_def_level > 0,
        ),
        DataPageHeader::V2(header) => {
            let def_level_buffer_length = header.definition_levels_byte_length as usize;
            let rep_level_buffer_length = header.repetition_levels_byte_length as usize;
            split_buffer_v2(
                page.buffer(),
                rep_level_buffer_length,
                def_level_buffer_length,
            )
        }
    }
}
pub fn split_buffer ( page : & DataPage ) -> ( & [ u8 ] , & [ u8 ] , & [ u8 ] ) { match page . header ( ) { DataPageHeader :: V1 ( _ ) => split_buffer_v1 ( page . buffer ( ) , page . descriptor . max_rep_level > 0 , page . descriptor . max_def_level > 0 , ) , DataPageHeader :: V2 ( header ) => { let def_level_buffer_length = header . definition_levels_byte_length as usize ; let rep_level_buffer_length = header . repetition_levels_byte_length as usize ; split_buffer_v2 ( page . buffer ( ) , rep_level_buffer_length , def_level_buffer_length , ) } } }
Splits the page buffer into 3 slices corresponding to (encoded rep levels, encoded def levels, encoded values).
Splits the page buffer into 3 slices corresponding to ( encoded rep levels encoded def levels encoded values ) .
page
&DataPage