- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CachedBucketOf (0.59 sec)
-
src/reflect/export_test.go
} } 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") } tt := (*mapType)(unsafe.Pointer(t)) return toType(tt.Bucket) } type EmbedWithUnexpMeth struct{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 3.8K bytes - Viewed (0) -
src/reflect/all_test.go
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))) verifyMapBucket(t, Tscalarptr, Tptr,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)