Lines Matching refs:write_pos
219 Py_off_t write_pos; member
1660 self->write_pos = 0; in _bufferedwriter_reset_buf()
1760 if (!VALID_WRITE_BUFFER(self) || self->write_pos == self->write_end) in _bufferedwriter_flush_unlocked()
1763 rewind = RAW_OFFSET(self) + (self->pos - self->write_pos); in _bufferedwriter_flush_unlocked()
1771 while (self->write_pos < self->write_end) { in _bufferedwriter_flush_unlocked()
1773 self->buffer + self->write_pos, in _bufferedwriter_flush_unlocked()
1774 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in _bufferedwriter_flush_unlocked()
1784 self->write_pos += n; in _bufferedwriter_flush_unlocked()
1785 self->raw_pos = self->write_pos; in _bufferedwriter_flush_unlocked()
1835 if (!VALID_WRITE_BUFFER(self) || self->write_pos > self->pos) { in bufferedwriter_write()
1836 self->write_pos = self->pos; in bufferedwriter_write()
1855 memmove(self->buffer, self->buffer + self->write_pos, in bufferedwriter_write()
1856 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in bufferedwriter_write()
1858 self->write_end -= self->write_pos; in bufferedwriter_write()
1859 self->raw_pos -= self->write_pos; in bufferedwriter_write()
1860 self->pos -= self->write_pos; in bufferedwriter_write()
1861 self->write_pos = 0; in bufferedwriter_write()
1938 self->write_pos = 0; in bufferedwriter_write()