code: def __shxRecords(self):
          
          f = self.__getFileObj(self.shx)
          f.seek(100)
          for i in range(len(self._shapes)):
              f.write(pack(">i", self._offsets[i] // 2))
              f.write(pack(">i", self._lengths[i]))
docs: Writes the shx records.