(&self, buf: ArgMemoryBuffer, vm: &VirtualMachine)
| 1915 | |
| 1916 | #[pymethod] |
| 1917 | fn readinto1(&self, buf: ArgMemoryBuffer, vm: &VirtualMachine) -> PyResult<Option<usize>> { |
| 1918 | let mut data = self.reader().lock(vm)?; |
| 1919 | let raw = data.check_init(vm)?; |
| 1920 | ensure_unclosed(raw, "readinto of closed file", vm)?; |
| 1921 | data.readinto_generic(buf.into(), true, vm) |
| 1922 | } |
| 1923 | |
| 1924 | #[pymethod] |
| 1925 | fn flush(&self, vm: &VirtualMachine) -> PyResult<()> { |
nothing calls this directly
no test coverage detected