Home
last modified time | relevance | path

Searched refs:seekable (Results 1 – 25 of 69) sorted by relevance

123

/external/python/cpython2/Lib/
Dmultifile.py41 seekable = 0 variable in MultiFile
43 def __init__(self, fp, seekable=1): argument
48 if seekable:
49 self.seekable = 1
105 if self.seekable:
129 if self.seekable:
137 if self.seekable:
150 if self.seekable:
Dchunk.py74 self.seekable = False
76 self.seekable = True
106 if not self.seekable:
154 if self.seekable:
Drfc822.py88 def __init__(self, fp, seekable = 1): argument
90 if seekable == 1:
96 seekable = 0
98 self.seekable = seekable
102 if self.seekable:
106 self.seekable = 0
110 if self.seekable:
114 self.seekable = 0
118 if not self.seekable:
146 elif self.seekable:
[all …]
Dmimetools.py24 def __init__(self, fp, seekable = 1): argument
25 rfc822.Message.__init__(self, fp, seekable)
D_pyio.py371 def seekable(self): member in IOBase
382 if not self.seekable():
749 def seekable(self): member in _BufferedIOMixin
750 return self.raw.seekable()
904 def seekable(self): member in BytesIO
1525 self._seekable = self._telling = self.buffer.seekable()
1570 def seekable(self): member in TextIOWrapper
/external/tremolo/Tremolo/
Dvorbisfile.c591 int link=(vf->seekable?vf->current_link:0); in _fetch_and_process_packet()
607 if(vf->seekable && link>0) in _fetch_and_process_packet()
675 if(vf->seekable){ in _fetch_and_process_packet()
748 if(offsettest!=-1)vf->seekable=1; in _ov_open1()
767 if(vf->seekable){ in _ov_open2()
862 return vf->seekable; in ov_seekable()
877 if(!vf->seekable && i!=0)return ov_bitrate(vf,0); in ov_bitrate()
889 if(vf->seekable){ in ov_bitrate()
927 if(!vf->seekable && i>=0)return ov_serialnumber(vf,-1); in ov_serialnumber()
942 if(!vf->seekable || i>=vf->links)return OV_EINVAL; in ov_raw_total()
[all …]
Divorbisfile.h68 int seekable; member
/external/python/cpython3/Lib/
Dchunk.py74 self.seekable = False
76 self.seekable = True
106 if not self.seekable:
154 if self.seekable:
D_compression.py28 if not self.seekable():
63 def seekable(self): member in DecompressReader
64 return self._fp.seekable()
Dlzma.py168 def seekable(self): member in LZMAFile
170 return self.readable() and self._buffer.seekable()
Dbz2.py147 def seekable(self): member in BZ2File
149 return self.readable() and self._buffer.seekable()
D_pyio.py392 def seekable(self): member in IOBase
403 if not self.seekable():
790 def seekable(self): member in _BufferedIOMixin
791 return self.raw.seekable()
953 def seekable(self): member in BytesIO
1670 def seekable(self): member in FileIO
1959 self._seekable = self._telling = self.buffer.seekable()
2014 def seekable(self): member in TextIOWrapper
/external/python/cpython3/Modules/_io/
Dfileio.c69 signed int seekable : 2; /* -1 means unknown */ member
193 self->seekable = -1; in fileio_new()
609 if (self->seekable < 0) {
613 self->seekable = 0;
616 self->seekable = 1;
619 return PyBool_FromLong((long) self->seekable);
Dtextio.c44 _Py_IDENTIFIER(seekable);
648 char seekable; member
1066 self->seekable = self->telling = r; in _io_TextIOWrapper___init___impl()
1071 if (self->seekable && self->encoder) { in _io_TextIOWrapper___init___impl()
2071 if (!self->seekable) { in _io_TextIOWrapper_seek_impl()
2260 if (!self->seekable) { in _io_TextIOWrapper_tell_impl()
2615 self->telling = self->seekable; in _io_TextIOWrapper_flush_impl()
2699 self->telling = self->seekable; in textiowrapper_iternext()
/external/python/cpython2/Modules/_io/
Dfileio.c51 signed int seekable : 2; /* -1 means unknown */ member
129 self->seekable = -1; in fileio_new()
461 if (self->seekable < 0) { in fileio_seekable()
465 self->seekable = 0; in fileio_seekable()
468 self->seekable = 1; in fileio_seekable()
471 return PyBool_FromLong((long) self->seekable); in fileio_seekable()
/external/python/cpython2/Lib/test/
Dtest_fileio.py229 f.seekable()
279 self.assertEqual(f.seekable(), True)
285 self.assertEqual(f.seekable(), True)
291 self.assertEqual(f.seekable(), True)
313 self.assertEqual(f.seekable(), False)
/external/python/cpython3/Doc/library/
Dwave.rst154 For seekable output streams, the ``wave`` header will automatically be updated
176 an exception if the output stream is not seekable and *nframes* does not
203 raise an error if the output stream is not seekable).
236 error if the output stream is not seekable and the total number of frames
/external/python/cpython3/Lib/test/
Dtest_fileio.py293 f.seekable()
352 self.assertEqual(f.seekable(), True)
358 self.assertEqual(f.seekable(), True)
364 self.assertEqual(f.seekable(), True)
383 self.assertEqual(f.seekable(), False)
Dtest_bz2.py396 self.assertTrue(bz2f.seekable())
398 self.assertTrue(bz2f.seekable())
401 self.assertRaises(ValueError, bz2f.seekable)
405 self.assertFalse(bz2f.seekable())
408 self.assertRaises(ValueError, bz2f.seekable)
411 src.seekable = lambda: False
414 self.assertFalse(bz2f.seekable())
417 self.assertRaises(ValueError, bz2f.seekable)
/external/python/cpython2/Doc/library/
Dmultifile.rst22 .. class:: MultiFile(fp[, seekable])
31 non-seekable stream object, set the optional *seekable* argument to false; this
Dmimetools.rst24 .. class:: Message(fp[, seekable])
28 *seekable* argument has the same meaning as for :class:`rfc822.Message`.
/external/python/cpython2/Tools/versioncheck/
Dpyversioncheck.py56 msg = rfc822.Message(fp, seekable=0)
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_iomenu.py54 self.assertFalse(f.seekable())
144 self.assertFalse(f.seekable())
/external/python/cpython3/Lib/xml/sax/
Dsaxutils.py104 buffer.seekable = out.seekable
/external/python/cpython2/Lib/xml/sax/
Dsaxutils.py96 buffer.seekable = out.seekable

123