polars_parquet::arrow::write

Function write_def_levels

Source
pub fn write_def_levels(
    writer: &mut Vec<u8>,
    is_optional: bool,
    validity: Option<&Bitmap>,
    len: usize,
    version: Version,
) -> PolarsResult<()>
Expand description

writes the def levels to a Vec<u8> and returns it.