- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 82 for makemap (0.34 sec)
-
src/runtime/map.go
h.hash0 = uint32(rand()) return h } // makemap implements Go map creation for make(map[k]v, hint). // If the compiler has determined that the map or the first bucket // can be created on the stack, h and/or bucket may be non-nil. // If h != nil, the map can be created directly in h. // If h.buckets != nil, bucket pointed to can be used as the first bucket. // // makemap should be an internal detail,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 57.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
new MapMaker().weakKeys().makeMap(); /** * The map tracking lock nodes that can cause a lock acquisition cycle if acquired before this * node. */ final Map<LockGraphNode, PotentialDeadlockException> disallowedPriorLocks = new MapMaker().weakKeys().makeMap(); final String lockName; LockGraphNode(String lockName) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Dec 15 19:31:54 UTC 2023 - 35.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go
item := reflect.New(t.Elem()) // recurse to populate the item, preserving the data context fill(dataString, dataInt, t.Elem(), item.Elem(), fillFuncs, filledTypes) // store in the map v.Set(reflect.MakeMap(t)) v.SetMapIndex(key, item.Elem()) case reflect.Struct: for i := 0; i < t.NumField(); i++ { field := t.Field(i) if !field.IsExported() { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:59 UTC 2023 - 6.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
new MapMaker().weakKeys().makeMap(); /** * The map tracking lock nodes that can cause a lock acquisition cycle if acquired before this * node. */ final Map<LockGraphNode, PotentialDeadlockException> disallowedPriorLocks = new MapMaker().weakKeys().makeMap(); final String lockName; LockGraphNode(String lockName) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Dec 15 19:31:54 UTC 2023 - 35.9K bytes - Viewed (0) -
src/text/template/exec_test.go
func add(args ...int) int { sum := 0 for _, x := range args { sum += x } return sum } func echo(arg any) any { return arg } func makemap(arg ...string) map[string]string { if len(arg)%2 != 0 { panic("bad makemap") } m := make(map[string]string) for i := 0; i < len(arg); i += 2 { m[arg[i]] = arg[i+1] } return m } func stringer(s fmt.Stringer) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/_builtin/runtime.go
func panicrangestate(state int) // defer in range over func func deferrangefunc() interface{} func rand32() uint32 // *byte is really *runtime.Type func makemap64(mapType *byte, hint int64, mapbuf *any) (hmap map[any]any) func makemap(mapType *byte, hint int, mapbuf *any) (hmap map[any]any) func makemap_small() (hmap map[any]any) func mapaccess1(mapType *byte, hmap map[any]any, key *any) (val *any)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 10.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter.go
return fmt.Errorf("cannot copy map with non-assignable keys: %v %v", st.Key(), dt.Key()) } if sv.IsNil() { dv.Set(reflect.Zero(dt)) return nil } dv.Set(reflect.MakeMap(dt)) for _, key := range sv.MapKeys() { value := reflect.New(dt.Elem()).Elem() if val := unwrapInterface(sv.MapIndex(key)); val.IsValid() { if err := fromUnstructured(val, value, ctx); err != nil { return err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 24.9K bytes - Viewed (0) -
src/html/template/exec_test.go
func add(args ...int) int { sum := 0 for _, x := range args { sum += x } return sum } func echo(arg any) any { return arg } func makemap(arg ...string) map[string]string { if len(arg)%2 != 0 { panic("bad makemap") } m := make(map[string]string) for i := 0; i < len(arg); i += 2 { m[arg[i]] = arg[i+1] } return m } func stringer(s fmt.Stringer) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
src/testing/quick/quick.go
case reflect.Uint: v.SetUint(uint64(randInt64(rand))) case reflect.Uintptr: v.SetUint(uint64(randInt64(rand))) case reflect.Map: numElems := rand.Intn(size) v.Set(reflect.MakeMap(concrete)) for i := 0; i < numElems; i++ { key, ok1 := sizedValue(concrete.Key(), rand, size) value, ok2 := sizedValue(concrete.Elem(), rand, size) if !ok1 || !ok2 { return reflect.Value{}, false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0) -
src/runtime/map_fast32.go
hash := t.Hasher(k, uintptr(h.hash0)) if hash&newbit != 0 { useY = 1 } } b.tophash[i] = evacuatedX + useY // evacuatedX + 1 == evacuatedY, enforced in makemap dst := &xy[useY] // evacuation destination if dst.i == abi.MapBucketCount { dst.b = h.newoverflow(t, dst.b) dst.i = 0 dst.k = add(unsafe.Pointer(dst.b), dataOffset)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.9K bytes - Viewed (0)