Inlined _getHash().