- Sort Score
- Result 10 results
- Languages All
Results 831 - 840 of 1,107 for len (0.05 sec)
-
cmd/etcd.go
} func saveKeyEtcd(ctx context.Context, client *etcd.Client, key string, data []byte, opts ...options) error { timeoutCtx, cancel := context.WithTimeout(ctx, defaultContextTimeout) defer cancel() if len(opts) > 0 { return saveKeyEtcdWithTTL(ctx, client, key, data, opts[0].ttl) } _, err := client.Put(timeoutCtx, key, string(data)) etcdLogIf(ctx, err) return etcdErrToErr(err, client.Endpoints()) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 2.9K bytes - Viewed (0) -
cmd/metrics-v3.go
} r.MustRegister(subRegistry) return subRegistry } // Register all collectors and create gatherers for them. gatherers := make(map[collectorPath]prometheus.Gatherer, len(collectors)) collectorPaths := make([]collectorPath, 0, len(collectors)) for path, collector := range collectors { gatherers[path] = mustRegister(collector) collectorPaths = append(collectorPaths, path) } slices.Sort(collectorPaths)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Aug 02 00:55:27 UTC 2024 - 13.6K bytes - Viewed (0) -
cmd/bucket-stats.go
return &BucketReplicationStats{ Stats: make(map[string]*BucketReplicationStat), } } // Empty returns true if there are no target stats func (brs *BucketReplicationStats) Empty() bool { return len(brs.Stats) == 0 && brs.ReplicaSize == 0 } // Clone creates a new BucketReplicationStats copy func (brs BucketReplicationStats) Clone() (c BucketReplicationStats) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 11:39:51 UTC 2024 - 13.4K bytes - Viewed (0) -
internal/bucket/lifecycle/tag.go
} // IsEmpty returns whether this tag is empty or not. func (tag Tag) IsEmpty() bool { return tag.Key == "" } // Validate checks this tag. func (tag Tag) Validate() error { if len(tag.Key) == 0 || utf8.RuneCountInString(tag.Key) > 128 { return errInvalidTagKey } if utf8.RuneCountInString(tag.Value) > 256 { return errInvalidTagValue } return nil
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 2.4K bytes - Viewed (0) -
internal/bucket/replication/datatypes_gen.go
} o = bts return } // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message func (z StatusType) Msgsize() (s int) { s = msgp.StringPrefixSize + len(string(z)) return } // DecodeMsg implements msgp.Decodable func (z *Type) DecodeMsg(dc *msgp.Reader) (err error) { { var zb0001 int zb0001, err = dc.ReadInt() if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 2.3K bytes - Viewed (0) -
misc/go_android_exec/exitcode_test.go
f, exitStr := newExitCodeFilter(&out) // Embed a "fake" exit code in the middle to check that we don't get caught on it. pre := "abc" + exitStr + "123def" text := pre + exitStr + `1` for i := 0; i < len(text); i++ { _, err := f.Write([]byte{text[i]}) if err != nil { t.Fatal(err) } } // The "pre" output should all have been flushed already. if want, got := pre, out.String(); want != got {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed May 03 14:54:58 UTC 2023 - 2.1K bytes - Viewed (0) -
internal/bucket/object/lock/lock.go
func ParseObjectLockRetentionHeaders(h http.Header) (rmode RetMode, r RetentionDate, err error) { retMode := h.Get(AmzObjectLockMode) dateStr := h.Get(AmzObjectLockRetainUntilDate) if len(retMode) == 0 || len(dateStr) == 0 { return rmode, r, ErrObjectLockInvalidHeaders } rmode = parseRetMode(retMode) if !rmode.Valid() { return rmode, r, ErrUnknownWORMModeDirective }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 29 01:20:27 UTC 2024 - 17.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ResponseBody.kt
cbuf: CharArray, off: Int, len: Int, ): Int { if (closed) throw IOException("Stream closed") val finalDelegate = delegate ?: InputStreamReader( source.inputStream(), source.readBomAsCharset(charset), ).also { delegate = it } return finalDelegate.read(cbuf, off, len) } @Throws(IOException::class)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Context.java
} @Override public byte[] initSecContext ( byte[] token, int off, int len ) throws SmbException { try { return this.gssContext.initSecContext(token, off, len); } catch ( GSSException e ) { throw new SmbAuthException("GSSAPI mechanism failed", e); } }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Aug 02 08:22:42 UTC 2018 - 13.9K bytes - Viewed (0) -
doc/go_spec.html
a2 := [2]byte(s) // a2[0] == s[0] a4 := [4]byte(s) // panics: len([4]byte) > len(s) s0 := (*[0]byte)(s) // s0 != nil s1 := (*[1]byte)(s[1:]) // &s1[0] == &s[1] s2 := (*[2]byte)(s) // &s2[0] == &s[0] s4 := (*[4]byte)(s) // panics: len([4]byte) > len(s) var t []string t0 := [0]string(t) // ok for nil slice t
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 02 00:58:01 UTC 2024 - 282.5K bytes - Viewed (0)