//! Single source of truth for memory-mapped file access.
//!
//! Every `unsafe` in `sift-core` lives here with a documented safety
//! invariant. Other modules import [`mmap_open`] instead of duplicating
//! the call.
use Path;
use Mmap;
/// Memory-map a file for read access.
///
/// # Safety invariant
///
/// `Mmap::map` dereferences the raw OS mapping pointer. The OS manages
/// bounds and the mapping outlives the closed `File` handle via refcount.