Fetch block contents from disk given extents
(self, extent)
| 202 | return os.path.join(self.settings['input'], "blk%05d.dat" % fn) |
| 203 | |
| 204 | def fetchBlock(self, extent): |
| 205 | '''Fetch block contents from disk given extents''' |
| 206 | with open(self.inFileName(extent.fn), "rb") as f: |
| 207 | f.seek(extent.offset) |
| 208 | return f.read(extent.size) |
| 209 | |
| 210 | def copyOneBlock(self): |
| 211 | '''Find the next block to be written in the input, and copy it to the output.''' |
no test coverage detected