(code: &CodeObject<C>)
| 30 | |
| 31 | impl FrozenCodeObject<Vec<u8>> { |
| 32 | pub fn encode<C: Constant>(code: &CodeObject<C>) -> Self { |
| 33 | let mut data = Vec::new(); |
| 34 | marshal::serialize_code(&mut data, code); |
| 35 | let bytes = lz4_flex::compress_prepend_size(&data); |
| 36 | Self { bytes } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | #[repr(transparent)] |
nothing calls this directly
no test coverage detected