- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 1,498 for ranges (0.04 sec)
-
src/bytes/boundary_test.go
func TestEqualNearPageBoundary(t *testing.T) { t.Parallel() b := dangerousSlice(t) for i := range b { b[i] = 'A' } for i := 0; i <= len(b); i++ { Equal(b[:i], b[len(b)-i:]) Equal(b[len(b)-i:], b[:i]) } } func TestIndexByteNearPageBoundary(t *testing.T) { t.Parallel() b := dangerousSlice(t) for i := range b { idx := IndexByte(b[i:], 1) if idx != -1 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Nov 30 20:05:58 UTC 2023 - 2.8K bytes - Viewed (0) -
internal/event/targetidset.go
setCopy := NewTargetIDSet() for k, v := range set { setCopy[k] = v } return setCopy } // add - adds TargetID to the set. func (set TargetIDSet) add(targetID TargetID) { set[targetID] = struct{}{} } // Union - returns union with given set as new set. func (set TargetIDSet) Union(sset TargetIDSet) TargetIDSet { nset := set.Clone() for k := range sset { nset.add(k) } return nset }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 1.9K bytes - Viewed (0) -
cmd/bucket-replication.go
compareMeta1 := make(map[string]string) for k, v := range oi1.UserDefined { var found bool for _, prefix := range compareKeys { if !stringsHasPrefixFold(k, prefix) { continue } found = true break } if found { compareMeta1[strings.ToLower(k)] = v } } compareMeta2 := make(map[string]string) for k, v := range oi2.Metadata { var found bool
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 06:49:55 UTC 2024 - 116.1K bytes - Viewed (0) -
cmd/batch-expire_gen.go
o = msgp.AppendArrayHeader(o, uint32(len(z.Tags))) for za0001 := range z.Tags { o, err = z.Tags[za0001].MarshalMsg(o) if err != nil { err = msgp.WrapError(err, "Tags", za0001) return } } // string "Metadata" o = append(o, 0xa8, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61) o = msgp.AppendArrayHeader(o, uint32(len(z.Metadata))) for za0002 := range z.Metadata { o, err = z.Metadata[za0002].MarshalMsg(o)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 01 12:53:30 UTC 2024 - 19.9K bytes - Viewed (0) -
cmd/data-usage.go
cachevalue.Opts{ReturnLastGood: true, NoWait: true}, func(ctx context.Context) (map[string]uint64, error) { m := make(map[string]uint64) for _, pool := range z.serverPools { for _, er := range pool.sets { // Load bucket usage prefixes ctx, done := context.WithTimeout(ctx, 2*time.Second) ok := cache.load(ctx, er, bucket+slashSeparator+dataUsageCacheName) == nil done()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 09 00:51:34 UTC 2024 - 5.6K bytes - Viewed (0) -
cmd/notification-summary.go
func GetTotalCapacity(diskInfo []madmin.Disk) (capacity uint64) { for _, disk := range diskInfo { capacity += disk.TotalSpace } return } // GetTotalUsableCapacity gets the total usable capacity in the cluster. func GetTotalUsableCapacity(diskInfo []madmin.Disk, s StorageInfo) (capacity uint64) { for _, disk := range diskInfo { // Ignore invalid.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 20 00:53:08 UTC 2023 - 2.2K bytes - Viewed (0) -
helm/minio/templates/_helper_policy.tpl
{{- $condition_len := len $statement.conditions }} {{- $condition_len := sub $condition_len 1 }} , "Condition": { {{- range $k,$v := $statement.conditions }} {{- range $operator,$object := $v }} "{{ $operator }}": { {{ $object }} }{{- if lt $k $condition_len }},{{- end }} {{- end }}{{- end }} }{{- end }} }{{ if lt $i $statements_length }},{{end }} {{- end }} ]
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Aug 19 14:39:11 UTC 2023 - 872 bytes - Viewed (0) -
callbacks/helper.go
values.Columns = make([]clause.Column, 0, len(mapValue)) selectColumns, restricted := stmt.SelectAndOmitColumns(true, false) keys := make([]string, 0, len(mapValue)) for k := range mapValue { keys = append(keys, k) } sort.Strings(keys) for _, k := range keys { value := mapValue[k] if stmt.Schema != nil { if field := stmt.Schema.LookUpField(k); field != nil { k = field.DBName } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Apr 14 12:32:57 UTC 2022 - 3.7K bytes - Viewed (0) -
internal/grid/debug.go
} for _, server := range t.Servers { server.Close() } for _, listener := range t.Listeners { listener.Close() } }) } // WaitAllConnect will wait for all connections to be established. func (t *TestGrid) WaitAllConnect(ctx context.Context) { for _, manager := range t.Managers { for _, remote := range manager.Targets() { if manager.HostName() == remote { continue }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 4.4K bytes - Viewed (0) -
internal/event/rulesmap.go
rules := make(Rules) rules.Add(pattern, targetID) for _, eventName := range eventNames { for _, name := range eventName.Expand() { rulesMap[name] = rulesMap[name].Union(rules) } } } // Clone - returns copy of this rules map. func (rulesMap RulesMap) Clone() RulesMap { rulesMapCopy := make(RulesMap) for eventName, rules := range rulesMap { rulesMapCopy[eventName] = rules.Clone() }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.6K bytes - Viewed (0)