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

Function write_entry

crates/compiler-core/src/frozen.rs:127–131  ·  view source on GitHub ↗
(buf: &mut Vec<u8>, name: &str, module: FrozenModule<impl AsRef<[u8]>>)

Source from the content-addressed store, hash-verified

125}
126
127fn write_entry(buf: &mut Vec<u8>, name: &str, module: FrozenModule<impl AsRef<[u8]>>) {
128 marshal::write_vec(buf, name.as_bytes());
129 marshal::write_vec(buf, module.code.bytes.as_ref());
130 buf.write_u8(module.package as u8);
131}

Callers 1

write_libFunction · 0.85

Calls 4

write_vecFunction · 0.85
write_u8Method · 0.80
as_bytesMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected