def _ParseEventData(self, variable_length_section):
    """Parses the event data form a variable-length data section.

    Args:
      variable_length_section (job_variable_length_data_section): a
          Windows Scheduled Task job variable-length data section.

    Returns:
      WinJobEventData: event data of the job file.
    """
    event_data = WinJobEventData()
    event_data.application = (
        variable_length_section.application_name.rstrip('\x00'))
    event_data.comment = variable_length_section.comment.rstrip('\x00')
    event_data.parameters = (
        variable_length_section.parameters.rstrip('\x00'))
    event_data.username = variable_length_section.author.rstrip('\x00')
    event_data.working_directory = (
        variable_length_section.working_directory.rstrip('\x00'))

    return event_data
Parses the event data form a variable-length data section.

    Args:
      variable_length_section (job_variable_length_data_section): a
          Windows Scheduled Task job variable-length data section.

    Returns:
      WinJobEventData: event data of the job file.