(data []byte)
| 336 | } |
| 337 | |
| 338 | func smallMetaStringWords(data []byte) pair { |
| 339 | if len(data) <= 8 { |
| 340 | return pair{bytesToInt64(data), 0} |
| 341 | } |
| 342 | return pair{int64(binary.LittleEndian.Uint64(data[:8])), bytesToInt64(data[8:])} |
| 343 | } |
| 344 | |
| 345 | func computeSmallMetaStringHash(words pair, length int, encoding meta.Encoding) int64 { |
| 346 | hash := uint64(words[0]*31+words[1]) ^ (uint64(length) << 56) |
no test coverage detected