MCPcopy Create free account
hub / github.com/RustPython/RustPython / cmsg_space

Function cmsg_space

crates/stdlib/src/socket.rs:3494–3497  ·  view source on GitHub ↗
(length: usize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

3492 #[cfg(all(unix, not(target_os = "redox")))]
3493 #[pyfunction(name = "CMSG_SPACE")]
3494 fn cmsg_space(length: usize, vm: &VirtualMachine) -> PyResult<usize> {
3495 checked_cmsg_space(length)
3496 .ok_or_else(|| vm.new_overflow_error("CMSG_SPACE() argument out of range"))
3497 }
3498}

Callers 1

checked_cmsg_spaceFunction · 0.85

Calls 2

checked_cmsg_spaceFunction · 0.85
ok_or_elseMethod · 0.80

Tested by

no test coverage detected