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

Method read

crates/stdlib/src/socket.rs:970–972  ·  view source on GitHub ↗
(&mut self, buf: &mut [u8])

Source from the content-addressed store, hash-verified

968
969 impl Read for &PySocket {
970 fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
971 (&mut &*self.sock()?).read(buf)
972 }
973 }
974
975 impl Write for &PySocket {

Callers 3

sock_optMethod · 0.45
delMethod · 0.45
filenoMethod · 0.45

Calls 1

sockMethod · 0.80

Tested by

no test coverage detected