So, in this expression, i = segment index and c = character code. idRangeOffset gets the segment offset in glyphIdArray inside the cmap. The value you are really looking for in this case is glyphIdArray [something]. Since glyphIdArray immediately follows idRangeOffset in the font file, you use idRangeOffset as the base pointer.
glyphIdArray, idRangeOffset, , idRangeOffset - 16 , 2, . glyphIdArray.
, , c - startCount [i], .
- , , .
LOCA.