- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 7,913 for tcCopy (0.4 sec)
-
src/cmd/compile/internal/typecheck/func.go
} n.SetType(t) return n } // tcCopy typechecks an OCOPY node. func tcCopy(n *ir.BinaryExpr) ir.Node { n.SetType(types.Types[types.TINT]) n.X = Expr(n.X) n.X = DefaultLit(n.X, nil) n.Y = Expr(n.Y) n.Y = DefaultLit(n.Y, nil) if n.X.Type() == nil || n.Y.Type() == nil { n.SetType(nil) return n } // copy([]byte, string) if n.X.Type().IsSlice() && n.Y.Type().IsString() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
return tcClose(n) case ir.ODELETE: n := n.(*ir.CallExpr) return tcDelete(n) case ir.OAPPEND: n := n.(*ir.CallExpr) return tcAppend(n) case ir.OCOPY: n := n.(*ir.BinaryExpr) return tcCopy(n) case ir.OCONV: n := n.(*ir.ConvExpr) return tcConv(n) case ir.OMAKE: n := n.(*ir.CallExpr) return tcMake(n) case ir.ONEW: n := n.(*ir.UnaryExpr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/copy_test.go
x := [1]byte{100} t1copy_ssa(&a.mid, &x) want := T1{[8]byte{201, 202, 203, 204, 205, 206, 207, 208}, [1]byte{100}, [8]byte{211, 212, 213, 214, 215, 216, 217, 218}} if a != want { t.Errorf("t1copy got=%v, want %v\n", a, want) } } type T2 struct { pre [8]byte mid [2]byte post [8]byte } //go:noinline func t2copy_ssa(y, x *[2]byte) { *y = *x } func testCopy2(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 150.2K bytes - Viewed (0) -
pkg/kubelet/apis/podresources/server_v1_test.go
func equalInt64s(a, b []int64) bool { if len(a) != len(b) { return false } aCopy := append([]int64{}, a...) sort.Slice(aCopy, func(i, j int) bool { return aCopy[i] < aCopy[j] }) bCopy := append([]int64{}, b...) sort.Slice(bCopy, func(i, j int) bool { return bCopy[i] < bCopy[j] }) return reflect.DeepEqual(aCopy, bCopy) } func equalStrings(a, b []string) bool { if len(a) != len(b) { return false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 45.9K bytes - Viewed (0) -
src/runtime/arena_test.go
t.Errorf("Clone did not make a copy: %#v -> %#v", b, bCopy) } if len(b) != len(bCopy) { t.Errorf("Clone made an incorrect copy (bad length): %d -> %d", len(b), len(bCopy)) } else { for i := range b { if b[i] != bCopy[i] { t.Errorf("Clone made an incorrect copy (data at index %d): %d -> %d", i, b[i], bCopy[i]) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go
return nil } func setObjectMetaUsingAccessors(u, uCopy *unstructured.Unstructured) { uCopy.SetName(u.GetName()) uCopy.SetGenerateName(u.GetGenerateName()) uCopy.SetNamespace(u.GetNamespace()) uCopy.SetSelfLink(u.GetSelfLink()) uCopy.SetUID(u.GetUID()) uCopy.SetResourceVersion(u.GetResourceVersion()) uCopy.SetGeneration(u.GetGeneration()) uCopy.SetCreationTimestamp(u.GetCreationTimestamp())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 5K bytes - Viewed (0) -
pkg/util/async/runner_test.go
funcs []func(chan struct{}) ) done := make(chan struct{}, 20) for i := 0; i < 10; i++ { iCopy := i funcs = append(funcs, func(c chan struct{}) { lock.Lock() events = append(events, fmt.Sprintf("%v starting\n", iCopy)) lock.Unlock() <-c lock.Lock() events = append(events, fmt.Sprintf("%v stopping\n", iCopy)) lock.Unlock() done <- struct{}{} }) } r := NewRunner(funcs...) r.Start()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 29 06:37:00 UTC 2016 - 1.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/tasks/Copy.java
*/ package org.gradle.api.tasks; import org.gradle.api.InvalidUserDataException; import org.gradle.api.internal.file.copy.CopyAction; import org.gradle.api.internal.file.copy.CopySpecInternal; import org.gradle.api.internal.file.copy.DestinationRootCopySpec; import org.gradle.api.internal.file.copy.FileCopyAction; import org.gradle.work.DisableCachingByDefault; import java.io.File; /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Oct 24 23:13:41 UTC 2022 - 3.4K bytes - Viewed (0) -
test/typeparam/maps.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0) -
test/typeparam/slices.go
// a separate copy for each type. func _Append[T any](s []T, t ...T) []T { lens := len(s) tot := lens + len(t) if tot <= cap(s) { s = s[:tot] } else { news := make([]T, tot, tot+tot/2) _Copy(news, s) s = news } _Copy(s[lens:tot], t) return s } // _Copy copies values from t to s, stopping when either slice is full,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0)