Home
last modified time | relevance | path

Searched refs:read_func (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Modules/
DcPickle.c377 Py_ssize_t (*read_func)(struct Unpicklerobject *, char **, Py_ssize_t); member
3510 if (self->read_func(self, &s, 4) < 0) in load_binint()
3522 if (self->read_func(self, &s, 1) < 0) in load_binint1()
3534 if (self->read_func(self, &s, 2) < 0) in load_binint2()
3577 i = self->read_func(self, &nbytes, size); in load_counted_long()
3594 i = self->read_func(self, (char **)&pdata, size); in load_counted_long()
3648 if (self->read_func(self, &p, 8) < 0) in load_binfloat()
3715 if (self->read_func(self, &s, 4) < 0) return -1; in load_binstring()
3727 if (self->read_func(self, &s, l) < 0) in load_binstring()
3745 if (self->read_func(self, &s, 1) < 0) in load_short_binstring()
[all …]
/external/bsdiff/
Dbspatch.cc68 const std::function<bool(uint8_t*, size_t)>& read_func) { in ReadStreamAndWriteAll() argument
71 if (!read_func(buf, bytes_to_output)) { in ReadStreamAndWriteAll()
/external/tremolo/Tremolo/
Divorbisfile.h60 size_t (*read_func) (void *ptr, size_t size, size_t nmemb, void *datasource); member
Dvorbisfile.c95 long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource); in _get_data()
/external/python/cpython2/Lib/test/
Dtest_io.py1672 def check_flush_and_read(self, read_func): argument
1676 self.assertEqual(b"ab", read_func(bufio, 2))
1678 self.assertEqual(b"ef", read_func(bufio, 2))
1682 self.assertEqual(b"ghi", read_func(bufio))
1688 self.assertEqual(b"XYZ", read_func(bufio, 3))
/external/python/cpython3/Lib/test/
Dtest_io.py2143 def check_flush_and_read(self, read_func): argument
2147 self.assertEqual(b"ab", read_func(bufio, 2))
2149 self.assertEqual(b"ef", read_func(bufio, 2))
2153 self.assertEqual(b"ghi", read_func(bufio))
2159 self.assertEqual(b"XYZ", read_func(bufio, 3))