- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 118 for nilslice (0.14 sec)
-
pkg/apis/resource/structured/namedresources/validation/validation.go
} if attribute.BoolValue != nil { entries.Insert("bool") } if attribute.IntValue != nil { entries.Insert("int") } if attribute.IntSliceValue != nil { entries.Insert("intSlice") } if attribute.StringValue != nil { entries.Insert("string") } if attribute.StringSliceValue != nil { entries.Insert("stringSlice") } if attribute.VersionValue != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:26:20 UTC 2024 - 5.9K bytes - Viewed (0) -
internal/grid/types.go
} return o, nil } // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message. func (m *MSS) Msgsize() int { if m == nil || *m == nil { return msgp.NilSize } s := msgp.MapHeaderSize for za0001, za0002 := range *m { s += msgp.StringPrefixSize + len(za0001) + msgp.StringPrefixSize + len(za0002) } return s } // NewMSS returns a new MSS.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Apr 01 23:42:09 UTC 2024 - 15.4K bytes - Viewed (0) -
src/go/types/builtins.go
// to type []byte with a second argument of string type followed by ... . // This form appends the bytes of the string. if nargs == 2 && hasDots(call) { if ok, _ := x.assignableTo(check, NewSlice(universeByte), nil); ok { y := args[1] if t := coreString(y.typ); t != nil && isString(t) { if check.recordTypes() { sig := makeSig(S, S, y.typ) sig.variadic = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding_test.go
maxCount := permutations * int(math.Ceil(nff)) aHand := make([]int, test.handSize) for i := 0; i < test.hashMax; i++ { aHand = dealer.DealIntoHand(uint64(i), aHand) sort.IntSlice(aHand).Sort() handCoordinate := 0 for _, card := range aHand { handCoordinate = handCoordinate<<7 + card } handCoordinateMap[handCoordinate]++ } numHandsSeen := len(handCoordinateMap)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 25 06:44:08 UTC 2021 - 6.7K bytes - Viewed (0) -
cmd/batch-handlers_gen.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon May 06 20:27:52 UTC 2024 - 18.6K bytes - Viewed (0) -
src/runtime/type.go
case abi.Func: ft := (*functype)(unsafe.Pointer(t)) fv := (*functype)(unsafe.Pointer(v)) if ft.OutCount != fv.OutCount || ft.InCount != fv.InCount { return false } tin, vin := ft.InSlice(), fv.InSlice() for i := 0; i < len(tin); i++ { if !typesEqual(tin[i], vin[i], seen) { return false } } tout, vout := ft.OutSlice(), fv.OutSlice() for i := 0; i < len(tout); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 12.7K bytes - Viewed (0) -
src/cmd/compile/internal/staticdata/embed.go
func embedKind(typ *types.Type) int { if typ.Sym() != nil && typ.Sym().Name == "FS" && typ.Sym().Pkg.Path == "embed" { return embedFiles } if typ.Kind() == types.TSTRING { return embedString } if typ.IsSlice() && typ.Elem().Kind() == types.TUINT8 { return embedBytes } return embedUnknown } func embedFileNameSplit(name string) (dir, elem string, isDir bool) { if name[len(name)-1] == '/' { isDir = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 10 18:22:02 UTC 2023 - 4.8K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
// old typechecker doesn't know OSLICEARR, so we set types explicitly hs.SetType(types.NewSlice(elem)) hs.SetTypecheck(1) } // We use a "pointer" to keep track of where we are in the backing array // of the slice hs. This pointer starts at hs.ptr and gets incremented // by the element size each time through the loop. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins.go
// to type []byte with a second argument of string type followed by ... . // This form appends the bytes of the string. if nargs == 2 && hasDots(call) { if ok, _ := x.assignableTo(check, NewSlice(universeByte), nil); ok { y := args[1] if t := coreString(y.typ); t != nil && isString(t) { if check.recordTypes() { sig := makeSig(S, S, y.typ) sig.variadic = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
src/sort/search.go
func SearchStrings(a []string, x string) int { return Search(len(a), func(i int) bool { return a[i] >= x }) } // Search returns the result of applying [SearchInts] to the receiver and x. func (p IntSlice) Search(x int) int { return SearchInts(p, x) } // Search returns the result of applying [SearchFloat64s] to the receiver and x. func (p Float64Slice) Search(x float64) int { return SearchFloat64s(p, x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 28 16:40:32 UTC 2023 - 5.7K bytes - Viewed (0)