Lines Matching refs:write_pos
229 Py_off_t write_pos; member
1762 self->write_pos = 0; in _bufferedwriter_reset_buf()
1860 if (!VALID_WRITE_BUFFER(self) || self->write_pos == self->write_end) in _bufferedwriter_flush_unlocked()
1863 rewind = RAW_OFFSET(self) + (self->pos - self->write_pos); in _bufferedwriter_flush_unlocked()
1871 while (self->write_pos < self->write_end) { in _bufferedwriter_flush_unlocked()
1873 self->buffer + self->write_pos, in _bufferedwriter_flush_unlocked()
1874 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in _bufferedwriter_flush_unlocked()
1884 self->write_pos += n; in _bufferedwriter_flush_unlocked()
1885 self->raw_pos = self->write_pos; in _bufferedwriter_flush_unlocked()
1946 if (!VALID_WRITE_BUFFER(self) || self->write_pos > self->pos) { in _io_BufferedWriter_write_impl()
1947 self->write_pos = self->pos; in _io_BufferedWriter_write_impl()
1966 memmove(self->buffer, self->buffer + self->write_pos, in _io_BufferedWriter_write_impl()
1967 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in _io_BufferedWriter_write_impl()
1969 self->write_end -= self->write_pos; in _io_BufferedWriter_write_impl()
1970 self->raw_pos -= self->write_pos; in _io_BufferedWriter_write_impl()
1971 self->pos -= self->write_pos; in _io_BufferedWriter_write_impl()
1972 self->write_pos = 0; in _io_BufferedWriter_write_impl()
2049 self->write_pos = 0; in _io_BufferedWriter_write_impl()