def align(self, alignment = None):
if alignment is None:<EOL><INDENT>if self.reader.sysinfo.ProcessorArchitecture == PROCESSOR_ARCHITECTURE.AMD64:<EOL><INDENT>alignment = <NUM_LIT:8><EOL><DEDENT>else:<EOL><INDENT>alignment = <NUM_LIT:4><EOL><DEDENT><DEDENT>offset = self.current_position % alignment<EOL>if offset == <NUM_LIT:0>:<EOL><INDENT>return<EOL><DEDENT>offset_to_aligned = (alignment - offset) % alignment<EOL>self.seek(offset_to_aligned, <NUM_LIT:1>)<EOL>return<EOL>
Repositions the current reader to match architecture alignment