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

Method read_wtf8

crates/compiler-core/src/marshal.rs:131–133  ·  view source on GitHub ↗
(&mut self, len: u32)

Source from the content-addressed store, hash-verified

129 }
130
131 fn read_wtf8(&mut self, len: u32) -> Result<&Wtf8> {
132 Wtf8::from_bytes(self.read_slice(len)?).ok_or(MarshalError::InvalidUtf8)
133 }
134
135 fn read_u8(&mut self) -> Result<u8> {
136 Ok(u8::from_le_bytes(*self.read_array()?))

Callers 1

deserialize_value_typedFunction · 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_sliceMethod · 0.80

Tested by

no test coverage detected