polars_arrow::mmap

Function mmap_dictionaries_unchecked

Source
pub unsafe fn mmap_dictionaries_unchecked<T: AsRef<[u8]>>(
    metadata: &FileMetadata,
    data: Arc<T>,
) -> PolarsResult<Dictionaries>
Available on crate feature io_ipc only.
Expand description

Memory maps dictionaries from an IPC file into

ยงSafety

The caller must ensure that data contains a valid buffers, for example:

  • Offsets in variable-sized containers must be in-bounds and increasing
  • Utf8 data is valid