(&mut self, vm: &VirtualMachine)
| 222 | } |
| 223 | |
| 224 | fn get_compressor(&mut self, vm: &VirtualMachine) -> PyResult<&mut C> { |
| 225 | self.compressor |
| 226 | .as_mut() |
| 227 | .ok_or_else(|| C::new_error(USE_AFTER_FINISH_ERR, vm)) |
| 228 | } |
| 229 | |
| 230 | pub fn compress(&mut self, data: &[u8], vm: &VirtualMachine) -> PyResult<Vec<u8>> { |
| 231 | let mut buf = Vec::new(); |
no test coverage detected