2 ms·
The de facto memmap crate for Rust makes it unsafe to access the contents of a memory map: https://docs.rs/memmap/0.5.0/memmap/struct.Mmap.html#method.as_slice
by burntsushi 10y ago
The de facto memmap crate for Rust makes it unsafe to access the contents of a memory map: https://docs.rs/memmap/0.5.0/memmap/struct.Mmap.html#method.as_slice https://docs.rs/memmap/0.5.0/memmap/struct.Mmap.html#method....
This doesn't actually answer your question, but the presence of `unsafe` will at least warn you that you need to put some thought into what you're doing.