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

Function handle_from_fd

crates/vm/src/stdlib/_io.rs:6019–6021  ·  view source on GitHub ↗
(fd: i32)

Source from the content-addressed store, hash-verified

6017 const BUFMAX: usize = 32 * 1024 * 1024;
6018
6019 fn handle_from_fd(fd: i32) -> HANDLE {
6020 unsafe { rustpython_common::suppress_iph!(libc::get_osfhandle(fd)) as HANDLE }
6021 }
6022
6023 fn is_invalid_handle(handle: HANDLE) -> bool {
6024 handle == INVALID_HANDLE_VALUE || handle.is_null()

Callers 6

pyio_get_console_typeFunction · 0.85
initMethod · 0.85
readintoMethod · 0.85
readallMethod · 0.85
readMethod · 0.85
writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected