- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 3,310 for reflect1 (0.2 sec)
-
src/testing/quick/quick.go
case reflect.Int16: v.SetInt(randInt64(rand)) case reflect.Int32: v.SetInt(randInt64(rand)) case reflect.Int64: v.SetInt(randInt64(rand)) case reflect.Int8: v.SetInt(randInt64(rand)) case reflect.Int: v.SetInt(randInt64(rand)) case reflect.Uint16: v.SetUint(uint64(randInt64(rand))) case reflect.Uint32: v.SetUint(uint64(randInt64(rand))) case reflect.Uint64:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0) -
test/fixedbugs/issue28748.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 21:23:29 UTC 2019 - 712 bytes - Viewed (0) -
src/reflect/nih_test.go
t.Fatalf("got %d, want 7", got) } v = ValueOf((*nih)(unsafe.Pointer(new(int)))) shouldPanic("reflect: reflect.Value.Elem on an invalid notinheap pointer", func() { v.Elem() }) shouldPanic("reflect: reflect.Value.Pointer on an invalid notinheap pointer", func() { v.Pointer() }) shouldPanic("reflect: reflect.Value.UnsafePointer on an invalid notinheap pointer", func() { v.UnsafePointer() })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 01:16:54 UTC 2022 - 1004 bytes - Viewed (0) -
platforms/ide/ide-native/src/test/groovy/org/gradle/ide/visualstudio/internal/NativeSpecVisualStudioTargetBinaryTest.groovy
exeBinary.libs >> [deps1, deps2] then: targetBinary.includePaths == [file1, file2, file3] as Set } def "reflects source files of binary"() { def sourceSets = new DefaultDomainObjectSet<LanguageSourceSet>(LanguageSourceSet, CollectionCallbackActionDecorator.NOOP) def sourcefile1 = new File('file1')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 13.3K bytes - Viewed (0) -
test/fixedbugs/issue52788.go
package main import ( "fmt" "reflect" ) func f(next func() bool) { for b := next(); b; b = next() { fmt.Printf("next() returned %v\n", b) } } func main() { next := reflect.MakeFunc(reflect.TypeOf((func() bool)(nil)), func(_ []reflect.Value) []reflect.Value { return []reflect.Value{reflect.ValueOf(false)} }) reflect.ValueOf(f).Call([]reflect.Value{next})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 09 16:02:28 UTC 2022 - 605 bytes - Viewed (0) -
src/internal/fmtsort/sort.go
func compare(aVal, bVal reflect.Value) int { aType, bType := aVal.Type(), bVal.Type() if aType != bType { return -1 // No good answer possible, but don't return 0: they're not equal. } switch aVal.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: return cmp.Compare(aVal.Int(), bVal.Int()) case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/testdata/deadcode/structof_funcof.go
Type: reflect.TypeOf(int(0)), }, }) println(t.Name()) } func useFuncOf() { t := reflect.FuncOf( []reflect.Type{reflect.TypeOf(int(0))}, []reflect.Type{reflect.TypeOf(int(0))}, false, ) println(t.Name()) } func main() { useStructOf() useFuncOf() var t T meth, _ := reflect.TypeOf(t).MethodByName("F") ft := meth.Type at := ft.In(1) v := reflect.New(at).Elem()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:07:26 UTC 2023 - 994 bytes - Viewed (0) -
scan.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10K bytes - Viewed (0) -
src/runtime/race/testdata/reflect_test.go
package race_test import ( "reflect" "testing" ) func TestRaceReflectRW(t *testing.T) { ch := make(chan bool, 1) i := 0 v := reflect.ValueOf(&i) go func() { v.Elem().Set(reflect.ValueOf(1)) ch <- true }() _ = v.Elem().Int() <-ch } func TestRaceReflectWW(t *testing.T) { ch := make(chan bool, 1) i := 0 v := reflect.ValueOf(&i) go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 13:12:15 UTC 2016 - 811 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/naming/naming.go
switch tp.Kind() { case reflect.Map, reflect.Slice, reflect.Pointer: errs = append(errs, ensureTags(gvk, tp.Elem(), parents, allowedNonstandardJSONNames)...) case reflect.String, reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr, reflect.Interface: // no-op case reflect.Struct: for i := 0; i < tp.NumField(); i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 07:07:03 UTC 2022 - 5.8K bytes - Viewed (0)