- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 118 for nilslice (0.19 sec)
-
cmd/site-replication-metrics_gen.go
s = 1 + 15 + msgp.Int64Size + 7 + z.Failed.Msgsize() + 16 + msgp.Int64Size + 8 + z.Latency.Msgsize() + 3 if z.XferRateLrg == nil { s += msgp.NilSize } else { s += z.XferRateLrg.Msgsize() } s += 3 if z.XferRateSml == nil { s += msgp.NilSize } else { s += z.XferRateSml.Msgsize() } s += 9 + msgp.StringPrefixSize + len(z.Endpoint) + 7 + msgp.BoolSize return
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 40.6K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance_gen.go
s = 1 + 7 + msgp.TimeSize + 3 + msgp.StringPrefixSize + len(z.ID) + 3 + msgp.Float64Size + 4 + msgp.ArrayHeaderSize for za0001 := range z.PoolStats { if z.PoolStats[za0001] == nil { s += msgp.NilSize } else { s += z.PoolStats[za0001].Msgsize() } } return } // DecodeMsg implements msgp.Decodable func (z *rebalanceMetric) DecodeMsg(dc *msgp.Reader) (err error) { {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 26.8K bytes - Viewed (0) -
src/runtime/slice_test.go
}) } var ( SinkIntSlice []int SinkIntPointerSlice []*int ) func BenchmarkExtendSlice(b *testing.B) { var length = 4 // Use a variable to prevent stack allocation of slices. b.Run("IntSlice", func(b *testing.B) { s := make([]int, 0, length) for i := 0; i < b.N; i++ { s = append(s[:0:length/2], make([]int, length)...) } SinkIntSlice = s }) b.Run("PointerSlice", func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 17 09:45:44 UTC 2020 - 10.3K bytes - Viewed (0) -
operator/pkg/compare/compare.go
log.Error(err.Error()) } } // IsLeafNode reports whether the given node is a leaf, assuming internal nodes can only be maps or slices. func IsLeafNode(node any) bool { return !util.IsMap(node) && !util.IsSlice(node)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 13.3K bytes - Viewed (0) -
src/encoding/asn1/asn1.go
val.Set(reflect.MakeSlice(sliceType, len(innerBytes), len(innerBytes))) reflect.Copy(val, reflect.ValueOf(innerBytes)) return } newSlice, err1 := parseSequenceOf(innerBytes, sliceType, sliceType.Elem()) if err1 == nil { val.Set(newSlice) } err = err1 return case reflect.String: var v string switch universalTag { case TagPrintableString:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 31.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go
types.Typ[types.Int16], types.Typ[types.Int32], types.Typ[types.Int64], types.Typ[types.Uint], types.Typ[types.Uint8], types.Typ[types.Uint16], types.Typ[types.Uint32], types.Typ[types.Uint64], types.NewSlice(types.Universe.Lookup("byte").Type()), } func run(pass *analysis.Pass) (interface{}, error) { for _, f := range pass.Files { if !strings.HasSuffix(pass.Fset.File(f.Pos()).Name(), "_test.go") { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 14.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
{newDefined(Typ[Int]), new(Struct), false}, {Typ[UntypedInt], Typ[Int], true}, {NewSlice(Typ[Int]), NewArray(Typ[Int], 10), true}, {NewSlice(Typ[Int]), NewArray(Typ[Uint], 10), false}, {NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Int], 10)), true}, {NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Uint], 10)), false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
src/reflect/type.go
if slice.Elem == typ { ti, _ := lookupCache.LoadOrStore(ckey, toRType(tt)) return ti.(Type) } } // Make a slice type. var islice any = ([]unsafe.Pointer)(nil) prototype := *(**sliceType)(unsafe.Pointer(&islice)) slice := *prototype slice.TFlag = 0 slice.Str = resolveReflectName(newName(s, "", false, false)) slice.Hash = fnv1(typ.Hash, '[') slice.Elem = typ
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
t.extra = &Array{Elem: elem, Bound: bound} if elem.HasShape() { t.SetHasShape(true) } if elem.NotInHeap() { t.SetNotInHeap(true) } return t } // NewSlice returns the slice Type with element type elem. func NewSlice(elem *Type) *Type { if t := elem.cache.slice; t != nil { if t.Elem() != elem { base.Fatalf("elem mismatch") } if elem.HasShape() != t.HasShape() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0)