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

Method _decode

crates/compiler-core/src/frozen.rs:23–28  ·  view source on GitHub ↗
(data: &[u8], bag: Bag)

Source from the content-addressed store, hash-verified

21 Self::_decode(self.bytes.as_ref(), bag.as_bag())
22 }
23 fn _decode<Bag: ConstantBag>(data: &[u8], bag: Bag) -> CodeObject<Bag::Constant> {
24 let decompressed = lz4_flex::decompress_size_prepended(data)
25 .expect("deserialize frozen CodeObject failed");
26 marshal::deserialize_code(&mut &decompressed[..], bag)
27 .expect("deserializing frozen CodeObject failed")
28 }
29}
30
31impl FrozenCodeObject<Vec<u8>> {

Callers

nothing calls this directly

Calls 1

deserialize_codeFunction · 0.85

Tested by

no test coverage detected