- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 1,051 for Len (0.01 sec)
-
cmd/bitrot-streaming.go
finished bool } func (b *streamingBitrotWriter) Write(p []byte) (int, error) { if len(p) == 0 { return 0, nil } if b.finished { return 0, errors.New("bitrot write not allowed") } if int64(len(p)) > b.shardSize { return 0, errors.New("unexpected bitrot buffer size") } if int64(len(p)) < b.shardSize { b.finished = true } b.h.Reset() b.h.Write(p) hashBytes := b.h.Sum(nil)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Jan 17 19:19:30 UTC 2025 - 6.2K bytes - Viewed (0) -
guava/src/com/google/common/hash/PrimitiveSink.java
* {@code bytes[off + len - 1]} is the last. * * @param bytes a byte array * @param off the start offset in the array * @param len the number of bytes to write * @return this instance * @throws IndexOutOfBoundsException if {@code off < 0} or {@code off + len > bytes.length} or * {@code len < 0} */ @CanIgnoreReturnValueRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/providers/packaging/AbstractLifecycleMappingProvider.java
requireNonNull(pluginBindings); final int len = pluginBindings.length; if (len < 2 || len % 2 != 0) { throw new IllegalArgumentException("Plugin bindings must have more than 0, even count of elements"); } HashMap<String, LifecyclePhase> lifecyclePhaseBindings = new HashMap<>(len / 2); for (int i = 0; i < len; i = i + 2) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sun Dec 22 12:24:35 UTC 2024 - 3.2K bytes - Viewed (0) -
internal/lock/lock_windows.go
// are less well-specified. if len(path) >= 2 && path[:2] == `\\` { // Don't canonicalize UNC paths. return path } if !filepath.IsAbs(path) { // Relative path return path } const prefix = `\\?` pathbuf := make([]byte, len(prefix)+len(path)+len(`\`)) copy(pathbuf, prefix) n := len(path) r, w := 0, len(prefix) for r < n { switch {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0) -
internal/lru/lru.go
c.mu.Lock() defer c.mu.Unlock() values := make([]V, 0, len(c.items)) now := time.Now() for ent := c.evictList.Back(); ent != nil; ent = ent.PrevEntry() { if now.After(ent.ExpiresAt) { continue } values = append(values, ent.Value) } return values } // Len returns the number of items in the cache. func (c *LRU[K, V]) Len() int { c.mu.Lock() defer c.mu.Unlock()
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Apr 25 08:22:26 UTC 2025 - 12.5K bytes - Viewed (0) -
cmd/data-usage-cache.go
d.reduceChildrenOf(hashPath(d.Info.Name), limit, true) } if len(d.Cache) <= limit { return } // Check for abandoned entries. found := make(map[string]struct{}, len(d.Cache)) // Mark all children recursively var mark func(entry dataUsageEntry)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 34.7K bytes - Viewed (0) -
cmd/xl-storage-format-utils.go
if err := xlMeta.LoadOrConvert(xlMetaBuf); err != nil { return FileInfoVersions{}, err } versions, err = xlMeta.ListVersions(volume, path, allParts) } if err == nil && len(versions) == 0 { // This special case is needed to handle len(xlMeta.versions) == 0 versions = []FileInfo{ { Volume: volume, Name: path, Deleted: true, IsLatest: true, ModTime: timeSentinel1970, }, }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 5.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/HMACT64.java
return md5.digest(digest); } @Override protected int engineDigest(final byte[] buf, final int offset, final int len) { final byte[] digest = md5.digest(); md5.update(opad); md5.update(digest); try { return md5.digest(buf, offset, len); } catch (final Exception ex) { throw new IllegalStateException(); } } @Override
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/util/HMACT64.java
} @Override protected int engineDigest(final byte[] buf, final int offset, final int len) { final byte[] digest = this.md5.digest(); this.md5.update(this.opad); this.md5.update(digest); try { return this.md5.digest(buf, offset, len); } catch (final Exception ex) { throw new IllegalStateException(); } } @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.6K bytes - Viewed (0)