Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def read_header(log, data, types, messages):
header = messages.profile_to_message('HEADER')
defn = header_defn(log, types, messages)
return header.parse(data[0:defn.size], defn).as_dict(filter=chain(join_values, append_units)).data