Home
last modified time | relevance | path

Searched refs:seekable (Results 1 – 25 of 75) 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.py143 def seekable(self): member in BZ2File
145 return self.readable() and self._buffer.seekable()
D_pyio.py389 def seekable(self): member in IOBase
400 if not self.seekable():
792 def seekable(self): member in _BufferedIOMixin
793 return self.raw.seekable()
966 def seekable(self): member in BytesIO
1698 def seekable(self): member in FileIO
1974 self._seekable = self._telling = self.buffer.seekable()
2099 def seekable(self): member in TextIOWrapper
/external/python/cpython3/Modules/_io/
Dfileio.c62 signed int seekable : 2; /* -1 means unknown */ member
184 self->seekable = -1; in fileio_new()
599 if (self->seekable < 0) {
602 assert(self->seekable >= 0);
610 return PyBool_FromLong((long) self->seekable);
915 if (self->seekable < 0) {
916 self->seekable = (res >= 0);
/external/python/cpython2/Modules/_io/
Dfileio.c54 signed int seekable : 2; /* -1 means unknown */ member
132 self->seekable = -1; in fileio_new()
487 if (self->seekable < 0) { in fileio_seekable()
491 self->seekable = 0; in fileio_seekable()
494 self->seekable = 1; in fileio_seekable()
497 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.rst156 For seekable output streams, the ``wave`` header will automatically be updated
178 an exception if the output stream is not seekable and *nframes* does not
205 raise an error if the output stream is not seekable).
238 error if the output stream is not seekable and the total number of frames
/external/python/cpython3/Lib/test/
Dtest_fileio.py299 f.seekable()
358 self.assertEqual(f.seekable(), True)
364 self.assertEqual(f.seekable(), True)
370 self.assertEqual(f.seekable(), True)
389 self.assertEqual(f.seekable(), False)
Dtest_bz2.py393 self.assertTrue(bz2f.seekable())
395 self.assertTrue(bz2f.seekable())
398 self.assertRaises(ValueError, bz2f.seekable)
402 self.assertFalse(bz2f.seekable())
405 self.assertRaises(ValueError, bz2f.seekable)
408 src.seekable = lambda: False
411 self.assertFalse(bz2f.seekable())
414 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_run.py83 self.assertFalse(f.seekable())
186 self.assertFalse(f.seekable())
/external/python/cpython3/Lib/xml/sax/
Dsaxutils.py104 buffer.seekable = out.seekable
/external/fonttools/Lib/fontTools/misc/
Detree.py300 buf.seekable = file_or_filename.seekable
/external/python/cpython2/Lib/xml/sax/
Dsaxutils.py96 buffer.seekable = out.seekable

123