Loading RustViz Engine...
Map multi-gigabyte disk files directly into the virtual address space.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub struct MmapSlice {
ptr: *const u8,
len: usize,
}
impl MmapSlice {
pub fn as_slice(&self) -> &[u8] {
unsafe { std::slice::from_raw_parts(self.ptr, self.len) }
}
}