- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 118 for nilslice (0.21 sec)
-
pkg/kubelet/cm/dra/plugin/noderesources.go
if !ok { return } newSlice, ok := new.(*resourceapi.ResourceSlice) if !ok { return } if loggerV := logger.V(6); loggerV.Enabled() { loggerV.Info("ResourceSlice update", "slice", klog.KObj(newSlice), "diff", cmp.Diff(oldSlice, newSlice)) } else { logger.V(5).Info("ResourceSlice update", "slice", klog.KObj(newSlice)) } c.queue.Add(newSlice.DriverName) },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 20:12:53 UTC 2024 - 16.6K bytes - Viewed (0) -
cmd/storage-rest-common_gen.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 7.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/issue50182_test.go
n := data.Len() for i := n - 1; i > 0; i-- { if data.Less(i, i-1) { return false } } return true } func TestGenericSorted(t *testing.T) { var data = sort.IntSlice{-10, -5, 0, 1, 2, 3, 5, 7, 11, 100, 100, 100, 1000, 10000} f := func() { genericSorted(data) } if n := testing.AllocsPerRun(10, f); n > 0 { t.Errorf("got %f allocs, want 0", n) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 13 23:35:37 UTC 2022 - 1.2K bytes - Viewed (0) -
src/go/doc/testdata/issue22856.go
package issue22856 type T struct{} func New() T { return T{} } func NewPointer() *T { return &T{} } func NewPointerSlice() []*T { return []*T{&T{}} } func NewSlice() []T { return []T{T{}} } func NewPointerOfPointer() **T { x := &T{}; return &x } func NewArray() [1]T { return [1]T{T{}} } func NewPointerArray() [1]*T { return [1]*T{&T{}} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 12 16:37:37 UTC 2018 - 1.1K bytes - Viewed (0) -
src/sort/search_test.go
name string result int i int }{ {"SearchInts", SearchInts(data, 11), 8}, {"SearchFloat64s", SearchFloat64s(fdata, 2.1), 4}, {"SearchStrings", SearchStrings(sdata, ""), 0}, {"IntSlice.Search", IntSlice(data).Search(0), 2}, {"Float64Slice.Search", Float64Slice(fdata).Search(2.0), 3}, {"StringSlice.Search", StringSlice(sdata).Search("x"), 3}, } func TestSearchWrappers(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 14:42:13 UTC 2022 - 6.8K bytes - Viewed (0) -
src/internal/types/testdata/examples/functions.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 30 20:19:38 UTC 2023 - 5.5K bytes - Viewed (0) -
src/cmd/compile/internal/staticdata/data.go
func InitAddr(n *ir.Name, noff int64, lsym *obj.LSym) { InitAddrOffset(n, noff, lsym, 0) } // InitSlice writes a static slice symbol {lsym, lencap, lencap} to n+noff, it does not modify n. // It's the caller responsibility to make sure lsym is from ONAME node. func InitSlice(n *ir.Name, noff int64, lsym *obj.LSym, lencap int64) { s := n.Linksym() s.WriteAddr(base.Ctxt, noff, types.PtrSize, lsym, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:08:50 UTC 2023 - 10.3K bytes - Viewed (0) -
cmd/batch-job-common-types_gen.go
s = 1 + 8 if z.Disable == nil { s += msgp.NilSize } else { s += msgp.BoolSize } s += 6 if z.Batch == nil { s += msgp.NilSize } else { s += msgp.IntSize } s += 9 if z.InMemory == nil { s += msgp.NilSize } else { s += msgp.BoolSize } s += 9 if z.Compress == nil { s += msgp.NilSize } else { s += msgp.BoolSize }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 02 10:51:33 UTC 2023 - 21.9K bytes - Viewed (0) -
src/cmd/asm/internal/lex/slice.go
package lex import ( "text/scanner" "cmd/internal/src" ) // A Slice reads from a slice of Tokens. type Slice struct { tokens []Token base *src.PosBase line int pos int } func NewSlice(base *src.PosBase, line int, tokens []Token) *Slice { return &Slice{ tokens: tokens, base: base, line: line, pos: -1, // Next will advance to zero. } } func (s *Slice) Next() ScanToken {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 29 22:49:50 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/under.go
if tpar == nil { return under(t) // string or untyped string } var su Type hasString := false if tpar.underIs(func(u Type) bool { if u == nil { return false } if isString(u) { u = NewSlice(universeByte) hasString = true } if su != nil { u = match(su, u) if u == nil { return false } } // su == nil || match(su, u) != nil su = u return true }) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.7K bytes - Viewed (0)