Fetch block contents from disk given extents
(self, extent)
| 214 | return os.path.join(self.settings['input'], "blk%05d.dat" % fn) |
| 215 | |
| 216 | def fetchBlock(self, extent): |
| 217 | '''Fetch block contents from disk given extents''' |
| 218 | with open(self.inFileName(extent.fn), "rb") as f: |
| 219 | f.seek(extent.offset) |
| 220 | return f.read(extent.size) |
| 221 | |
| 222 | def copyOneBlock(self): |
| 223 | '''Find the next block to be written in the input, and copy it to the output.''' |
no test coverage detected