Home
last modified time | relevance | path

Searched refs:tell (Results 1 – 25 of 71) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_largefile.py60 self.assertEqual(f.tell(), 0)
62 self.assertEqual(f.tell(), 1)
64 self.assertEqual(f.tell(), 0)
66 self.assertEqual(f.tell(), 0)
68 self.assertEqual(f.tell(), 42)
70 self.assertEqual(f.tell(), 42)
72 self.assertEqual(f.tell(), 84)
74 self.assertEqual(f.tell(), 84)
76 self.assertEqual(f.tell(), size + 1 + 0)
78 self.assertEqual(f.tell(), size + 1 - 10)
[all …]
Dtest_fileio.py34 self.assertEqual(self.f.tell(), p.tell())
41 self.assertEqual(self.f.tell(), 20)
43 self.assertEqual(self.f.tell(), 0)
45 self.assertEqual(self.f.tell(), 10)
47 self.assertEqual(self.f.tell(), 15)
49 self.assertEqual(self.f.tell(), 10)
51 self.assertEqual(self.f.tell(), 15)
183 f.tell()
337 self.assertEqual(f.tell(), 10)
339 self.assertEqual(f.tell(), 10)
[all …]
Dtest_memoryio.py54 self.assertEqual(0, bytesIo.tell())
56 self.assertEqual(5, bytesIo.tell())
58 self.assertEqual(10000, bytesIo.tell())
71 self.assertEqual(f.tell(), 6)
73 self.assertEqual(f.tell(), 5)
78 self.assertEqual(f.tell(), 1)
129 self.assertEqual(memio.tell(), 6)
133 pos = memio.tell()
135 self.assertEqual(memio.tell(), pos)
164 self.assertEqual(memio.tell(), 10)
[all …]
Dtest_file.py33 self.assertEqual(self.f.tell(), p.tell())
215 if f.tell() != 5:
216 self.fail("File pos after read wrong %d" % f.tell())
219 if f.tell() != 5:
220 self.fail("File pos after ftruncate wrong %d" % f.tell())
Dtest_io.py85 def tell(self): member in MockRawIOWithoutRead
146 def tell(self): member in MisbehavedRawIO
255 self.assertEqual(f.tell(), 5)
261 self.assertEqual(f.tell(), 6)
263 self.assertEqual(f.tell(), 5)
268 self.assertEqual(f.tell(), 13)
271 self.assertEqual(f.tell(), 13)
293 self.assertEqual(f.tell(), 10)
308 self.assertEqual(f.tell(), self.LARGE)
310 self.assertEqual(f.tell(), self.LARGE + 3)
[all …]
Dtest_mmap.py74 self.assertEqual(m.tell(), 0)
76 self.assertEqual(m.tell(), 42)
78 self.assertEqual(m.tell(), len(m))
107 self.assertEqual(f.tell(), 512)
513 self.assertEqual(f.tell(), halfsize + 512)
554 self.assertEqual(m.tell(), i)
556 self.assertEqual(m.tell(), i+1)
562 self.assertEqual(m.tell(), i)
564 self.assertEqual(m.tell(), i+1)
569 self.assertEqual(m.tell(), 6)
[all …]
Dtest_aifc.py44 self.assertEqual(f.tell(), 0)
47 pos0 = f.tell()
50 pos2 = f.tell()
Dtest_univnewlines2k.py74 pos = fp.tell()
112 pos = fp.tell()
Dtest_file2k.py32 self.assertEqual(self.f.tell(), p.tell())
280 if f.tell() != 5:
281 self.fail("File pos after read wrong %d" % f.tell())
284 if f.tell() != 5:
285 self.fail("File pos after ftruncate wrong %d" % f.tell())
579 self.f.tell()
Dtest_univnewlines.py84 pos = fp.tell()
108 pos = fp.tell()
Dtest_gzip.py69 f.tell()
148 oldpos = f.tell()
151 newpos = f.tell()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dmultifile.py50 self.start = self.fp.tell()
53 def tell(self): member in MultiFile
56 return self.fp.tell() - self.start
59 here = self.tell()
106 self.lastpos = self.tell() - len(line)
130 self.start = self.fp.tell()
139 self.start = self.fp.tell()
DStringIO.py114 def tell(self): member in StringIO
292 length = f.tell()
298 print 'Position =', f.tell()
308 f.seek(f.tell() - len(line))
313 print 'File length =', f.tell()
314 if f.tell() != length:
318 print 'Truncated length =', f.tell()
319 if f.tell() != length/2:
Dmailbox.py631 cur_len = self._file.tell()
645 new_start = new_file.tell()
648 stop - self._file.tell()))
652 new_toc[key] = (new_start, new_file.tell())
708 before = self._file.tell()
717 self._file_length = self._file.tell() # Record current length of mailbox
732 string = self._file.read(stop - self._file.tell())
743 string = self._file.read(stop - self._file.tell())
752 return _PartialFile(self._file, self._file.tell(), stop)
771 start = self._file.tell()
[all …]
D_pyio.py312 def tell(self): member in IOBase
696 def tell(self): member in _BufferedIOMixin
697 pos = self.raw.tell()
709 pos = self.tell()
861 def tell(self): member in BytesIO
1029 def tell(self): member in BufferedReader
1030 return _BufferedIOMixin.tell(self) - len(self._read_buf) + self._read_pos
1104 pos = self.raw.tell()
1133 def tell(self): member in BufferedWriter
1134 return _BufferedIOMixin.tell(self) + len(self._write_buf)
[all …]
Drfc822.py94 fp.tell()
104 self.startofheaders = self.fp.tell()
112 self.startofbody = self.fp.tell()
143 startofline = unread = tell = None
147 tell = self.fp.tell
149 if tell:
151 startofline = tell()
153 startofline = tell = None
191 elif tell:
Dwave.py187 def tell(self): member in Wave_read
413 def tell(self): member in Wave_write
468 self._form_length_pos = self._file.tell()
475 self._data_length_pos = self._file.tell()
483 curpos = self._file.tell()
Dchunk.py72 self.offset = self.file.tell()
115 def tell(self): member in Chunk
Dtempfile.py503 if max_size and file.tell() > max_size:
513 newfile.seek(file.tell(), 0)
587 def tell(self): member in SpooledTemporaryFile
588 return self._file.tell()
Dhttplib.py268 startofline = unread = tell = None
272 tell = self.fp.tell
274 if tell:
276 startofline = tell()
278 startofline = tell = None
319 elif tell:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DStringIO.py114 def tell(self): member in StringIO
292 length = f.tell()
298 print 'Position =', f.tell()
308 f.seek(f.tell() - len(line))
313 print 'File length =', f.tell()
314 if f.tell() != length:
318 print 'Truncated length =', f.tell()
319 if f.tell() != length/2:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
Dbkfile.py29 self.tell = self.__file.tell
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/framer/
Dexample.py80 def tell(self): member in cStringIO.InputType
/device/linaro/hikey/l-loader/
Dgen_loader_hikey.py105 …, 'last block is ', fsize % self.block_size, 'bytes', ' tell: ', self.fp.tell(), 'left_bytes: ', …
110 print 'p_file: ', self.p_file, ' pad to: ', self.fp.tell()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Drgrep.py33 pos = f.tell()

123