- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,906 for tcCopy (0.16 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) -
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) -
cmd/kubeadm/app/util/copy.go
/* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 22 01:42:57 UTC 2024 - 1.9K bytes - Viewed (0) -
src/net/http/httptrace/trace.go
if tf.IsNil() { tf.Set(of) continue } // Make a copy of tf for tf to call. (Otherwise it // creates a recursive call cycle and stack overflows) tfCopy := reflect.ValueOf(tf.Interface()) // We need to call both tf and of in some order. newFunc := reflect.MakeFunc(hookType, func(args []reflect.Value) []reflect.Value { tfCopy.Call(args) return of.Call(args) }) tv.Field(i).Set(newFunc) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go
// resultCh is used as both errCh and stopCh resultCh := make(chan interface{}) var tw timeoutWriter tw, w = newTimeoutWriter(w) // Make a copy of request and work on it in new goroutine // to avoid race condition when accessing/modifying request (e.g. headers) rCopy := r.Clone(r.Context()) go func() { defer func() { err := recover() // do not wrap the sentinel ErrAbortHandler panic value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
_Cap: {"cap", 1, false, expression}, _Clear: {"clear", 1, false, statement}, _Close: {"close", 1, false, statement}, _Complex: {"complex", 2, false, expression}, _Copy: {"copy", 2, false, statement}, _Delete: {"delete", 2, false, statement}, _Imag: {"imag", 1, false, expression}, _Len: {"len", 1, false, expression}, _Make: {"make", 1, true, expression},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
_Cap: {"cap", 1, false, expression}, _Clear: {"clear", 1, false, statement}, _Close: {"close", 1, false, statement}, _Complex: {"complex", 2, false, expression}, _Copy: {"copy", 2, false, statement}, _Delete: {"delete", 2, false, statement}, _Imag: {"imag", 1, false, expression}, _Len: {"len", 1, false, expression}, _Make: {"make", 1, true, expression},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go
if !compatibleValueTypes(minType, t) { return nil, fmt.Errorf("incompatible types: %v %v", *minType, *t) } if ratio, _ := Scale(1, t.Unit, minType.Unit); ratio < 1 { minType = t } } rcopy := *minType return &rcopy, nil } func compatibleValueTypes(v1, v2 *profile.ValueType) bool { if v1 == nil || v2 == nil { return true // No grounds to disqualify. } // Remove trailing 's' to permit minor mismatches.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 8.8K bytes - Viewed (0)