Lines Matching refs:written
662 _set_BlockingIOError(const char *msg, Py_ssize_t written) in _set_BlockingIOError() argument
667 errno, msg, written); in _set_BlockingIOError()
689 return &err->written; in _buffered_check_blocking_error()
992 Py_ssize_t n, written = 0, remaining; in _buffered_readinto_generic() local
1006 written = n; in _buffered_readinto_generic()
1022 for (remaining = buffer->len - written; in _buffered_readinto_generic()
1024 written += n, remaining -= n) { in _buffered_readinto_generic()
1028 n = _bufferedreader_raw_read(self, (char *) buffer->buf + written, in _buffered_readinto_generic()
1034 else if (!(readinto1 && written)) { in _buffered_readinto_generic()
1039 memcpy((char *) buffer->buf + written, in _buffered_readinto_generic()
1048 if (n == 0 || (n == -2 && written > 0)) in _buffered_readinto_generic()
1060 written += n; in _buffered_readinto_generic()
1064 res = PyLong_FromSsize_t(written); in _buffered_readinto_generic()
1103 Py_ssize_t n, written = 0; in _buffered_readline() local
1145 written += n; in _buffered_readline()
1190 written += n; in _buffered_readline()
1649 Py_ssize_t current_size, remaining, written; in _bufferedreader_read_generic() local
1661 written = 0; in _bufferedreader_read_generic()
1665 written += current_size; in _bufferedreader_read_generic()
1682 r = _bufferedreader_raw_read(self, out + written, r); in _bufferedreader_read_generic()
1687 if (r == 0 || written > 0) { in _bufferedreader_read_generic()
1688 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
1697 written += r; in _bufferedreader_read_generic()
1712 if (r == 0 || written > 0) { in _bufferedreader_read_generic()
1713 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
1722 memcpy(out + written, self->buffer + self->pos, r); in _bufferedreader_read_generic()
1723 written += r; in _bufferedreader_read_generic()
1728 memcpy(out + written, self->buffer + self->pos, remaining); in _bufferedreader_read_generic()
1729 written += remaining; in _bufferedreader_read_generic()
1876 Py_ssize_t written = 0; in _bufferedwriter_flush_unlocked() local
1905 written += Py_SAFE_DOWNCAST(n, Py_off_t, Py_ssize_t); in _bufferedwriter_flush_unlocked()
1933 Py_ssize_t written, avail, remaining; in _io_BufferedWriter_write_impl() local
1959 written = buffer->len; in _io_BufferedWriter_write_impl()
1988 written = buffer->len; in _io_BufferedWriter_write_impl()
2019 written = 0; in _io_BufferedWriter_write_impl()
2022 self, (char *) buffer->buf + written, buffer->len - written); in _io_BufferedWriter_write_impl()
2030 (char *) buffer->buf + written, self->buffer_size); in _io_BufferedWriter_write_impl()
2034 written += self->buffer_size; in _io_BufferedWriter_write_impl()
2036 "blocking", written); in _io_BufferedWriter_write_impl()
2042 written += n; in _io_BufferedWriter_write_impl()
2053 memcpy(self->buffer, (char *) buffer->buf + written, remaining); in _io_BufferedWriter_write_impl()
2054 written += remaining; in _io_BufferedWriter_write_impl()
2063 res = PyLong_FromSsize_t(written); in _io_BufferedWriter_write_impl()