Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newIndirectNode (0.23 sec)

  1. src/internal/concurrent/hashtriemap.go

    func NewHashTrieMap[K, V comparable]() *HashTrieMap[K, V] {
    	var m map[K]V
    	mapType := abi.TypeOf(m).MapType()
    	ht := &HashTrieMap[K, V]{
    		root:     newIndirectNode[K, V](nil),
    		keyHash:  mapType.Hasher,
    		keyEqual: mapType.Key.Equal,
    		valEqual: mapType.Elem.Equal,
    		seed:     uintptr(rand.Uint64()),
    	}
    	return ht
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top