def decompile(self, data, ttFont):
    if ((data is not None) and (ttFont is not None)):
        self.decompileHeader(data, ttFont)
    else:
        assert ((data is None) and (ttFont is None)), 'Need both data and ttFont arguments'
    data = self.data
    assert (262 == self.length), 'Format 0 cmap subtable not 262 bytes'
    glyphIdArray = array.array('B')
    glyphIdArray.fromstring(self.data)
    self.cmap = cmap = {}
    lenArray = len(glyphIdArray)
    charCodes = list(range(lenArray))
    names = map(self.ttFont.getGlyphName, glyphIdArray)
    list(map(operator.setitem, ([cmap] * lenArray), charCodes, names))
def decompile(self, data, ttFont):
    if ((data is not None) and (ttFont is not None)):
        self.decompileHeader(data, ttFont)
    else:
        assert ((data is None) and (ttFont is None)), 'Need both data and ttFont arguments'
    data = self.data
    assert (262 == self.length), 'Format 0 cmap subtable not 262 bytes'
    glyphIdArray = array.array('B')
    glyphIdArray.fromstring(self.data)
    self.cmap = cmap = {}
    lenArray = len(glyphIdArray)
    charCodes = list(range(lenArray))
    names = map(self.ttFont.getGlyphName, glyphIdArray)
    list(map(operator.setitem, ([cmap] * lenArray), charCodes, names))