- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 392 for asSlice (0.27 sec)
-
test/fixedbugs/issue22881.go
} func fa2(m map[int][]int) { var p *int m[0], _ = append(m[0], 0), *p } func fa3(m map[int][]int) { // OSLICE has similar in-place-reassignment // optimizations as OAPPEND, but we need to make sure // to *not* optimize them, because we can't guarantee // the slice indices are within bounds. m[0] = m[0][:1] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 20 01:47:07 UTC 2018 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
_Add: {"Add", 2, false, expression}, _Alignof: {"Alignof", 1, false, expression}, _Offsetof: {"Offsetof", 1, false, expression}, _Sizeof: {"Sizeof", 1, false, expression}, _Slice: {"Slice", 2, false, expression}, _SliceData: {"SliceData", 1, false, expression}, _String: {"String", 2, false, expression}, _StringData: {"StringData", 1, false, 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
_Add: {"Add", 2, false, expression}, _Alignof: {"Alignof", 1, false, expression}, _Offsetof: {"Offsetof", 1, false, expression}, _Sizeof: {"Sizeof", 1, false, expression}, _Slice: {"Slice", 2, false, expression}, _SliceData: {"SliceData", 1, false, expression}, _String: {"String", 2, false, expression}, _StringData: {"StringData", 1, false, 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/net/splice_linux.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package net import ( "internal/poll" "io" ) var pollSplice = poll.Splice // spliceFrom transfers data from r to c using the splice system call to minimize // copies from and to userspace. c must be a TCP connection. // Currently, spliceFrom is only enabled if r is a TCP or a stream-oriented Unix connection. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 1.7K bytes - Viewed (0) -
src/slices/iter.go
// returns the extended slice. func AppendSeq[Slice ~[]E, E any](s Slice, seq iter.Seq[E]) Slice { for v := range seq { s = append(s, v) } return s } // Collect collects values from seq into a new slice and returns it. func Collect[E any](seq iter.Seq[E]) []E { return AppendSeq([]E(nil), seq) } // Sorted collects values from seq into a new slice, sorts the slice,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:40:32 UTC 2024 - 2.9K bytes - Viewed (0) -
pkg/registry/resource/resourceslice/strategy_test.go
ctx := genericapirequest.NewDefaultContext() slice := slice.DeepCopy() Strategy.PrepareForCreate(ctx, slice) errs := Strategy.Validate(ctx, slice) if len(errs) != 0 { t.Errorf("unexpected error validating for create %v", errs) } } func TestClassStrategyUpdate(t *testing.T) { t.Run("no-changes-okay", func(t *testing.T) { ctx := genericapirequest.NewDefaultContext() slice := slice.DeepCopy() newClass := slice.DeepCopy()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectContainerExtensionsTest.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 18 22:58:28 UTC 2024 - 9.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/critical.go
// splitting occasionally leads to a phi having // a single argument (occurs with -N) // Don't increment i in this case because we moved // an unprocessed predecessor down into slot i. } else { // splice it in p.Succs[pi] = Edge{d, 0} b.Preds[i] = Edge{d, 0} d.Preds = append(d.Preds, Edge{p, pi}) d.Succs = append(d.Succs, Edge{b, i}) i++ } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 16 21:40:11 UTC 2023 - 3.1K bytes - Viewed (0) -
test/fixedbugs/issue56768.go
package p type I interface { M() } type slice []any func f() { ss := struct{ i I }{} _ = [...]struct { s slice }{ { s: slice{ss.i}, }, { s: slice{ss.i}, }, { s: slice{ss.i}, }, { s: slice{ss.i}, }, { s: slice{ss.i}, }, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 17 19:55:28 UTC 2022 - 441 bytes - Viewed (0) -
operator/pkg/tpath/struct.go
func Set(val, out any) error { // Special case: map out type must be set through map ptr. if util.IsMap(val) && util.IsMapPtr(out) { reflect.ValueOf(out).Elem().Set(reflect.ValueOf(val)) return nil } if util.IsSlice(val) && util.IsSlicePtr(out) { reflect.ValueOf(out).Elem().Set(reflect.ValueOf(val)) return nil } if reflect.TypeOf(val) != reflect.TypeOf(out) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 4.4K bytes - Viewed (0)