def write_record(self, event_str):
header = struct.pack('<STR_LIT>', len(event_str))<EOL>header += struct.pack('<STR_LIT:I>', masked_crc32c(header))<EOL>footer = struct.pack('<STR_LIT:I>', masked_crc32c(event_str))<EOL>self._writer.write(header + event_str + footer)<EOL>
Writes a serialized event to file.