def writeline(self, fmt, *args):
fmt = self.endian + fmt<EOL>size = struct.calcsize(fmt)<EOL>fix = struct.pack(self.endian + '<STR_LIT:i>', size)<EOL>line = struct.pack(fmt, *args)<EOL>self.write(fix)<EOL>self.write(line)<EOL>self.write(fix)<EOL>
Write `line` (list of objects) with given `fmt` to file. The
`line` will be chained if object is iterable (except for
basestrings).