(&mut self, position: usize, state: u64)
| 299 | /// ``` |
| 300 | #[pyo3(signature = (position, state))] |
| 301 | pub fn seek(&mut self, position: usize, state: u64) -> PyResult<()> { |
| 302 | self.inner.seek((position, state)).map_err(|()| { |
| 303 | pyo3::exceptions::PyValueError::new_err( |
| 304 | "Tried to seek past end of stream. Note: in an ANS coder,\n\ |
| 305 | both decoding and seeking *consume* compressed data. The Python API of\n\ |
| 306 | `constriction`'s ANS coder currently does not support seeking backward.", |
| 307 | ) |
| 308 | }) |
| 309 | } |
| 310 | |
| 311 | /// Resets the encoder to an empty state. |
| 312 | /// |
no outgoing calls