MCPcopy Index your code
hub / github.com/RustPython/RustPython / try_restore_mmap

Method try_restore_mmap

crates/stdlib/src/mmap.rs:1466–1471  ·  view source on GitHub ↗
(&self, mmap_guard: &mut Option<MmapObj>, handle: HANDLE, size: usize)

Source from the content-addressed store, hash-verified

1464 /// If restoration fails, marks the mmap as closed.
1465 #[cfg(windows)]
1466 fn try_restore_mmap(&self, mmap_guard: &mut Option<MmapObj>, handle: HANDLE, size: usize) {
1467 match Self::create_mmap_windows(handle, self.offset, size, &self.access) {
1468 Ok(mmap) => *mmap_guard = Some(mmap),
1469 Err(_) => self.closed.store(true),
1470 }
1471 }
1472
1473 fn getitem_by_index(&self, i: isize, vm: &VirtualMachine) -> PyResult<PyObjectRef> {
1474 let i = i

Callers 1

resizeMethod · 0.80

Calls 2

SomeClass · 0.50
storeMethod · 0.45

Tested by

no test coverage detected