(&self, vm: &VirtualMachine)
| 1668 | |
| 1669 | #[pymethod] |
| 1670 | fn tell(&self, vm: &VirtualMachine) -> PyResult<Offset> { |
| 1671 | let mut data = self.lock(vm)?; |
| 1672 | let raw_tell = data.raw_tell(vm)?; |
| 1673 | let raw_offset = data.raw_offset(); |
| 1674 | let mut pos = raw_tell - raw_offset; |
| 1675 | // GH-95782 |
| 1676 | if pos < 0 { |
| 1677 | pos = 0; |
| 1678 | } |
| 1679 | Ok(pos) |
| 1680 | } |
| 1681 | |
| 1682 | #[pymethod] |
| 1683 | fn truncate( |
nothing calls this directly
no test coverage detected