Lines Matching refs:write_end
222 Py_off_t write_end; member
338 (self->writable && self->write_end != -1)
1661 self->write_end = -1; in _bufferedwriter_reset_buf()
1760 if (!VALID_WRITE_BUFFER(self) || self->write_pos == self->write_end) in _bufferedwriter_flush_unlocked()
1771 while (self->write_pos < self->write_end) { in _bufferedwriter_flush_unlocked()
1774 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in _bufferedwriter_flush_unlocked()
1839 if (self->pos > self->write_end) in bufferedwriter_write()
1840 self->write_end = self->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()
1862 avail = Py_SAFE_DOWNCAST(self->buffer_size - self->write_end, in bufferedwriter_write()
1867 memcpy(self->buffer + self->write_end, buf.buf, buf.len); in bufferedwriter_write()
1868 self->write_end += buf.len; in bufferedwriter_write()
1874 memcpy(self->buffer + self->write_end, buf.buf, avail); in bufferedwriter_write()
1875 self->write_end += avail; in bufferedwriter_write()
1915 self->write_end = self->buffer_size; in bufferedwriter_write()
1940 self->write_end = remaining; in bufferedwriter_write()