def decompileHeader(self, data, ttFont):
    (format, reserved, length, language, nGroups) = struct.unpack('>HHLLL', data[:16])
    assert (len(data) == (16 + (nGroups * 12)) == length), ('corrupt cmap table format %d (data length: %d, header length: %d)' % (self.format, len(data), length))
    self.format = format
    self.reserved = reserved
    self.length = length
    self.language = language
    self.nGroups = nGroups
    self.data = data[16:]
    self.ttFont = ttFont
def decompileHeader(self, data, ttFont):
    (format, reserved, length, language, nGroups) = struct.unpack('>HHLLL', data[:16])
    assert (len(data) == (16 + (nGroups * 12)) == length), ('corrupt cmap table format %d (data length: %d, header length: %d)' % (self.format, len(data), length))
    self.format = format
    self.reserved = reserved
    self.length = length
    self.language = language
    self.nGroups = nGroups
    self.data = data[16:]
    self.ttFont = ttFont