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

Method read_u16

crates/compiler-core/src/marshal.rs:139–141  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

137 }
138
139 fn read_u16(&mut self) -> Result<u16> {
140 Ok(u16::from_le_bytes(*self.read_array()?))
141 }
142
143 fn read_u32(&mut self) -> Result<u32> {
144 Ok(u32::from_le_bytes(*self.read_array()?))

Callers 1

read_pylongFunction · 0.80

Implementers 3

openssl.rscrates/stdlib/src/openssl.rs
socket.rscrates/stdlib/src/socket.rs
marshal.rscrates/compiler-core/src/marshal.rs

Calls 1

read_arrayMethod · 0.45

Tested by

no test coverage detected