(&self, bag: Bag)
| 18 | /// Decode a frozen code object |
| 19 | #[inline] |
| 20 | pub fn decode<Bag: AsBag>(&self, bag: Bag) -> CodeObject<<Bag::Bag as ConstantBag>::Constant> { |
| 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"); |