def METHOD_NAME(self, time_nsec_since_epoch, data):
    self.file.write(data)
    self.file_size += len(data)
    if not self.first_time:
        self.first_time = time_nsec_since_epoch
    self.last_time = time_nsec_since_epoch