Home
last modified time | relevance | path

Searched refs:readinto (Results 1 – 25 of 39) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_fileio.py84 n = f.readinto(ba)
94 n = f.readinto(m)
100 n = f.readinto(m)
110 n = f.readinto(a)
116 n = f.readinto(a)
122 n = f.readinto(a)
196 self.assertRaises(TypeError, f.readinto, "")
214 self.assertRaises(TypeError, self.f.readinto)
215 self.assertRaises(ValueError, self.f.readinto, bytearray(1))
342 f.readinto(a)
Dtest_file.py50 n = self.f.readinto(a)
59 self.assertRaises(TypeError, self.f.readinto, a)
94 self.assertRaises((OSError, TypeError), f.readinto, "")
301 f.readinto(buf)
336 f.readinto(buf)
Dtest_httplib.py590 n = resp.readinto(b)
594 n = resp.readinto(b)
621 n = resp.readinto(b)
653 n = resp.readinto(b)
657 n = resp.readinto(b)
660 n = resp.readinto(b)
685 n = resp.readinto(b)
689 n = resp.readinto(b)
692 n = resp.readinto(b)
758 if resp.readinto(b) != 0:
[all …]
Dtest_memoryio.py476 self.assertEqual(memio.readinto(b), 5)
478 self.assertEqual(memio.readinto(b), 5)
480 self.assertEqual(memio.readinto(b), 0)
484 self.assertEqual(memio.readinto(b), 10)
488 self.assertEqual(memio.readinto(b), 0)
490 self.assertRaises(TypeError, memio.readinto, '')
494 memio.readinto(a)
497 self.assertRaises(ValueError, memio.readinto, b)
501 memio.readinto(b)
Dtest_io.py123 def readinto(self, buf): member in MockRawIOWithoutRead
184 def readinto(self, buf): member in MisbehavedRawIO
185 super().readinto(buf)
237 def readinto(self, b): member in MockFileIO
238 res = super().readinto(b)
360 self.assertEqual(f.readinto(data), 5)
363 self.assertEqual(f.readinto(data), 2)
369 self.assertEqual(f.readinto(byteslike(b"x")), 0)
373 self.assertEqual(f.readinto(byteslike()), 0)
754 self.assertRaises(ValueError, file.readinto, bytearray(1))
[all …]
Dtest_marshal.py307 def readinto(self, buf): member in BugsTestCase.test_bad_reader.BadReader
308 n = super().readinto(buf)
Dtest_bz2.py77 test_size += fh.readinto(memoryview(BIG_TEXT)[test_size:])
195 self.assertEqual(bz2f.readinto(b), n)
199 self.assertEqual(bz2f.readinto(b), n)
Dtest_memoryview.py312 self.assertRaises(TypeError, i.readinto, m)
/third_party/python/Lib/
Dbz2.py178 def readinto(self, b): member in BZ2File
184 return self._buffer.readinto(b)
D_pyio.py657 n = self.readinto(b)
677 def readinto(self, b): member in RawIOBase
741 def readinto(self, b): member in BufferedIOBase
1218 n = self.raw.readinto(buf[written:])
1388 def readinto(self, b): member in BufferedRWPair
1389 return self.reader.readinto(b)
1475 def readinto(self, b): member in BufferedRandom
1477 return BufferedReader.readinto(self, b)
1713 def readinto(self, b): member in FileIO
D_compression.py66 def readinto(self, b): member in DecompressReader
Dpickle.py270 def readinto(self, buf): member in _Unframer
272 n = self.current_frame.readinto(buf)
1199 self.readinto = self._unframer.readinto
1392 self.readinto(b)
Dsocket.py691 def readinto(self, b): member in SocketIO
Dshutil.py174 fsrc_readinto = fsrc.readinto
/third_party/python/Modules/_io/
Dwinconsoleio.c632 readinto(winconsoleio *self, char *buf, Py_ssize_t len) in readinto() function
739 Py_ssize_t len = readinto(self, buffer->buf, buffer->len); in _io__WindowsConsoleIO_readinto_impl()
926 bytes_size = readinto(self, PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); in _io__WindowsConsoleIO_read_impl()
D_iomodule.c799 ADD_INTERNED(readinto) in PyInit__io()
/third_party/python/Doc/library/
Dio.rst254 :meth:`~IOBase.readinto` and :meth:`~IOBase.readline`.
294 :class:`RawIOBase` :class:`IOBase` ``readinto`` and Inherited :class:`IOBase` …
296 …` :class:`IOBase` ``detach``, ``read``, Inherited :class:`IOBase` methods, ``readinto``,
487 :meth:`readinto`.
494 .. method:: readinto(b)
521 :meth:`readinto` and :meth:`write` will try (respectively) to read as much
531 implementation that defers to :meth:`readinto`.
578 :meth:`~RawIOBase.readinto`) method. This can be useful if you are
585 .. method:: readinto(b)
602 :meth:`~RawIOBase.readinto`) method. Return the number of bytes read.
[all …]
Dbz2.rst114 :meth:`read1` and :meth:`readinto` methods were added.
Dhttp.client.rst464 .. method:: HTTPResponse.readinto(b)
/third_party/python/Lib/http/
Dclient.py489 def readinto(self, b): member in HTTPResponse
512 n = self.fp.readinto(b)
638 n = self.fp.readinto(b)
/third_party/python/Modules/
D_pickle.c679 PyObject *readinto; /* readinto() method of the input stream. */ member
1385 if (!self->readinto) { in _Unpickler_ReadInto()
1418 PyObject *read_size_obj = _Pickle_FastCall(self->readinto, buf_obj); in _Unpickler_ReadInto()
1605 self->readinto = NULL; in _Unpickler_New()
1638 _Py_IDENTIFIER(readinto); in _Unpickler_SetInputStream()
1645 if (_PyObject_LookupAttrId(file, &PyId_readinto, &self->readinto) < 0) { in _Unpickler_SetInputStream()
1656 Py_CLEAR(self->readinto); in _Unpickler_SetInputStream()
7151 Py_XDECREF(self->readinto); in Unpickler_dealloc()
7175 Py_VISIT(self->readinto); in Unpickler_traverse()
7188 Py_CLEAR(self->readinto); in Unpickler_clear()
/third_party/python/Misc/NEWS.d/
D3.9.0a4.rst114 Fix segfault in ``readinto()`` method on closed BufferedReader.
291 file-like object that doesn't expose a readinto() method.
/third_party/python/Lib/asyncio/
Dbase_events.py899 read = await self.run_in_executor(None, file.readinto, view)
1182 read = await self.run_in_executor(None, file.readinto, view)
/third_party/python/Lib/multiprocessing/
Dconnection.py242 result.readinto(m[offset // itemsize :
/third_party/python/Python/
Dmarshal.c667 _Py_IDENTIFIER(readinto); in r_string()

12