Lines Matching refs:f
46 self.simg_f = f = open(simg_fn, mode)
48 header_bin = f.read(28)
87 header_bin = f.read(12)
102 offset_map.append((pos, chunk_sz, f.tell(), None))
104 f.seek(data_sz, os.SEEK_CUR)
107 fill_data = f.read(4)
164 f = self.simg_f
167 f.seek(0, os.SEEK_END)
168 f.write(struct.pack("<2H3I", 0xCAC2, 0, blocks, 16, data))
174 f.seek(16, os.SEEK_SET)
175 f.write(struct.pack("<2I", self.total_blocks, self.total_chunks))
209 f = self.simg_f
221 f.seek(p, os.SEEK_SET)
222 yield f.read(this_read * self.blocksize)
233 f.seek(filepos, os.SEEK_SET)
234 yield f.read(this_read * self.blocksize)
250 with open(fn) as f:
251 for line in f:
313 f = self.simg_f
320 f.seek(filepos, os.SEEK_SET)
321 data = f.read(self.blocksize)