Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MapBucketOf (0.18 sec)

  1. src/reflect/export_test.go

    			typ := (*rtype)(resolveTypeOff(rodata, off))
    			r = append(r, typ.String())
    		}
    	}
    	return r
    }
    
    var GCBits = gcbits
    
    func gcbits(any) []byte // provided by runtime
    
    func MapBucketOf(x, y Type) Type {
    	return toType(bucketOf(x.common(), y.common()))
    }
    
    func CachedBucketOf(m Type) Type {
    	t := m.(*rtype)
    	if Kind(t.t.Kind_&abi.KindMask) != Map {
    		panic("not map")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	verifyGCBits(t, SliceOf(ArrayOf(10000, Tscalar)), lit(1))
    
    	hdr := make([]byte, bucketCount/goarch.PtrSize)
    
    	verifyMapBucket := func(t *testing.T, k, e Type, m any, want []byte) {
    		verifyGCBits(t, MapBucketOf(k, e), want)
    		verifyGCBits(t, CachedBucketOf(TypeOf(m)), want)
    	}
    	verifyMapBucket(t,
    		Tscalar, Tptr,
    		map[Xscalar]Xptr(nil),
    		join(hdr, rep(bucketCount, lit(0)), rep(bucketCount, lit(1)), lit(1)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top