code: def _AddSerializedEvent(self, event):
      
      identifier = identifiers.SQLTableIdentifier(
          self._CONTAINER_TYPE_EVENT,
          self._serialized_event_heap.number_of_events + 1)
      event.SetIdentifier(identifier)
  
      serialized_data = self._SerializeAttributeContainer(event)
  
      self._serialized_event_heap.PushEvent(event.timestamp, serialized_data)
  
      if self._serialized_event_heap.data_size > self._maximum_buffer_size:
        self._WriteSerializedAttributeContainerList(self._CONTAINER_TYPE_EVENT)
docs: Adds an serialized event.
  
      Args:
        event (EventObject): event.
  
      Raises:
        IOError: if the event cannot be serialized.
        OSError: if the event cannot be serialized.