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

Function write

crates/common/src/crt_fd.rs:386–388  ·  view source on GitHub ↗
(fd: Borrowed<'_>, buf: &[u8])

Source from the content-addressed store, hash-verified

384}
385
386pub fn write(fd: Borrowed<'_>, buf: &[u8]) -> io::Result<usize> {
387 _write(fd.as_raw(), buf)
388}
389
390pub fn read(fd: Borrowed<'_>, buf: &mut [u8]) -> io::Result<usize> {
391 _read(fd.as_raw(), buf)

Callers 10

push_uncheckedMethod · 0.70
try_insertMethod · 0.70
raw_ptr_writeFunction · 0.70
set_prevMethod · 0.70
set_nextMethod · 0.70
putsFunction · 0.50
puts_bytesFunction · 0.50
dump_hexadecimalFunction · 0.50
dump_decimalFunction · 0.50
writeMethod · 0.50

Calls 2

_writeFunction · 0.85
as_rawMethod · 0.45

Tested by

no test coverage detected