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

Method resize

crates/stdlib/src/mmap.rs:1181–1185  ·  view source on GitHub ↗
(&self, _newsize: PyIntRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1179 #[cfg(unix)]
1180 #[pymethod]
1181 fn resize(&self, _newsize: PyIntRef, vm: &VirtualMachine) -> PyResult<()> {
1182 self.check_resizeable(vm)?;
1183 // TODO: implement using mremap on Linux
1184 Err(vm.new_system_error("mmap: resizing not available--no mremap()"))
1185 }
1186
1187 #[cfg(windows)]
1188 #[pymethod]

Callers 4

setMethod · 0.45
sendmsg_afalgMethod · 0.45
resize_bufFunction · 0.45
build_no_location_maskFunction · 0.45

Calls 15

minFunction · 0.85
newFunction · 0.85
check_resizeableMethod · 0.80
try_to_primitiveMethod · 0.80
new_os_errorMethod · 0.80
try_restore_mmapMethod · 0.80
ErrClass · 0.50
SomeClass · 0.50
WriteInterface · 0.50
loadMethod · 0.45
lockMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected