@classmethod
def header_type(cls, header_chunk):
    """Return the header type, given the first header chunk"""
    header_bits = cls.header_type_mask & header_chunk[0]
    for key, val in cls.header_type_by_desc.items():
        if val == header_bits:
            return key
    raise ValueError('Undefined header type:', header_bits)
