def align_after(self, offset):
f = self.reader<EOL>if offset <= <NUM_LIT:0>:  <EOL><INDENT>f.seek(<NUM_LIT:0>)<EOL>self._block_count = <NUM_LIT:0><EOL>self._read_header()  <EOL>return<EOL><DEDENT>sm = self.sync_marker<EOL>sml = len(sm)<EOL>pos = offset<EOL>while pos < self.file_length - sml:<EOL><INDENT>f.seek(pos)<EOL>data = f.read(self.FORWARD_WINDOW_SIZE)<EOL>sync_offset = data.find(sm)<EOL>if sync_offset > -<NUM_LIT:1>:<EOL><INDENT>f.seek(pos + sync_offset)<EOL>self._block_count = <NUM_LIT:0><EOL>return<EOL><DEDENT>pos += len(data)<EOL><DEDENT>
Search for a sync point after offset and align just after that.