- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 591 for elem5 (0.15 sec)
-
src/cmd/compile/internal/typecheck/subr.go
if src.IsPtr() && dst.IsPtr() && dst.Elem().NotInHeap() && !src.Elem().NotInHeap() { why := fmt.Sprintf(":\n\t%v is incomplete (or unallocatable), but %v is not", dst.Elem(), src.Elem()) return ir.OXXX, why } // (b) Disallow string to []T where T is not-in-heap. if src.IsString() && dst.IsSlice() && dst.Elem().NotInHeap() && (dst.Elem().Kind() == types.ByteType.Kind() || dst.Elem().Kind() == types.RuneType.Kind()) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 19:45:58 UTC 2023 - 20.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go
// construct a zero-value item 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)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:59 UTC 2023 - 6.5K bytes - Viewed (0) -
src/internal/reflectlite/all_test.go
func TestPtrSetNil(t *testing.T) { var i int32 = 1234 ip := &i vip := ValueOf(&ip) vip.Elem().Set(Zero(vip.Elem().Type())) if ip != nil { t.Errorf("got non-nil (%d), want nil", *ip) } } func TestMapSetNil(t *testing.T) { m := make(map[string]int) vm := ValueOf(&m) vm.Elem().Set(Zero(vm.Elem().Type())) if m != nil { t.Errorf("got non-nil (%p), want nil", m) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:26:08 UTC 2023 - 24.2K bytes - Viewed (0) -
platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/StackTraceFilterTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go
// map values are not addressable. We need a copy. v := obj.MapIndex(k) copy := reflect.New(v.Type()) copy.Elem().Set(v) valueFuzz(copy.Elem()) obj.SetMapIndex(k, copy.Elem()) } // TODO: set some new value } case reflect.Func: // ignore, we don't have function types in our API default: if !obj.CanSet() { return } switch obj.Kind() { case reflect.String:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 2.3K bytes - Viewed (0) -
src/reflect/set_test.go
type notASTExpr interface { Pos() token.Pos End() token.Pos exprNode() } func TestImplements(t *testing.T) { for _, tt := range implementsTests { xv := TypeOf(tt.x).Elem() xt := TypeOf(tt.t).Elem() if b := xv.Implements(xt); b != tt.b { t.Errorf("(%s).Implements(%s) = %v, want %v", xv.String(), xt.String(), b, tt.b) } } } var assignableTests = []struct { x any t any
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 13:56:11 UTC 2022 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
// uncheckedCastNullableTToT is safe because bufferSize > 0. if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) { threshold = elem; } // uncheckedCastNullableTToT is safe because bufferSize > 0. } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) { // Otherwise, we can ignore elem; we've seen k better elements. buffer[bufferSize++] = elem;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tensor_list_ops_decomposition.mlir
// CHECK-NEXT: %[[ELEM:.*]] = "tf.Reshape"(%[[SLICE]], %[[ELEM_SHAPE]]) : (tensor<1xf32>, tensor<0xi32>) -> tensor<f32> %get = "tf.TensorListGetItem"(%tl, %arg0, %elem_shape) : (tensor<!tf_type.variant<tensor<f32>>>, tensor<i32>, tensor<0xi32>) -> tensor<f32> // CHECK-NEXT: return %[[ELEM]] : tensor<f32> func.return %get: tensor<f32> } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 38.6K bytes - Viewed (0) -
test/fixedbugs/issue35073a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:12:49 UTC 2023 - 497 bytes - Viewed (0) -
src/runtime/checkptr.go
import "unsafe" func checkptrAlignment(p unsafe.Pointer, elem *_type, n uintptr) { // nil pointer is always suitably aligned (#47430). if p == nil { return } // Check that (*[n]elem)(p) is appropriately aligned. // Note that we allow unaligned pointers if the types they point to contain // no pointers themselves. See issue 37298. // TODO(mdempsky): What about fieldAlign? if elem.Pointers() && uintptr(p)&(uintptr(elem.Align_)-1) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 3.6K bytes - Viewed (0)