// GetWithHint returns a value for a key.
// The hash/seed params must be previous generated from the Hash function
// sharing the same key. Doing otherwise will risk corruption to map.
// Returns false when no value has been assign for key.
GetWithHint returns a value for a key.
The hash/seed params must be previous generated from the Hash function
sharing the same key. Doing otherwise will risk corruption to map.
Returns false when no value has been assign for key.
// GetWithHint returns a value for a key . // The hash / seed params must be previous generated from the Hash function // sharing the same key . Doing otherwise will risk corruption to map . // Returns false when no value has been assign for key .
func (m *Map) GetWithHint(key string, hash, seed uint32) (interface{}, bool) {
	if len(m.entries) == 0 {
		return nil, false
	}
	if atomic.LoadUint32(&m.seed) != seed {
		return m.Get(key)
	}
	i := int(hash) & m.mask
	oi := i
	for {
		if m.entries[i].dist == 0 {
			return nil, false
		}
		if m.entries[i].hash == hash && m.entries[i].key == key {
			return m.entries[i].value, true
		}
		i = (i + 1) & m.mask
		if i == oi {
			return nil, false
		}
	}
}
func ( m * Map ) GetWithHint ( key string , hash , seed uint32 ) ( interface { } , bool ) { if len ( m . entries ) == 0 { return nil , false } if atomic . LoadUint32 ( & m . seed ) != seed { return m . Get ( key ) } i := int ( hash ) & m . mask oi := i for { if m . entries [ i ] . dist == 0 { return nil , false } if m . entries [ i ] . hash == hash && m . entries [ i ] . key == key { return m . entries [ i ] . value , true } i = ( i + 1 ) & m . mask if i == oi { return nil , false } } }
GetWithHint returns a value for a key.
GetWithHint returns a value for a key .