- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 1,107 for Len (0.02 sec)
-
internal/store/batch.go
} } b.items = append(b.items, item) return nil } // Len returns the no of items in the batch func (b *Batch[_]) Len() int { b.Lock() defer b.Unlock() return len(b.items) } func (b *Batch[_]) isFull() bool { return len(b.items) >= int(b.limit) } func (b *Batch[I]) commit() error { switch len(b.items) { case 0: return nil case 1: _, err := b.store.Put(b.items[0])
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 2.9K bytes - Viewed (0) -
callbacks/callbacks.go
enableTransaction := func(db *gorm.DB) bool { return !db.SkipDefaultTransaction } if len(config.CreateClauses) == 0 { config.CreateClauses = createClauses } if len(config.QueryClauses) == 0 { config.QueryClauses = queryClauses } if len(config.DeleteClauses) == 0 { config.DeleteClauses = deleteClauses } if len(config.UpdateClauses) == 0 { config.UpdateClauses = updateClauses }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Oct 27 23:56:55 UTC 2021 - 3.3K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_test.go
if readBytes != wroteBytes { a, b := readBuf.Bytes(), wroteBuf.Bytes() if debug && !bytes.Equal(a, b) { common := len(a) for i := range a { if a[i] != b[i] { common = i break } } a, b = a[common:], b[common:] if len(a) > 64 { a = a[:64] } if len(b) > 64 { b = b[:64] } t.Errorf("after %d common bytes, difference \nread: %x\nwrote:%x", common, a, b)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipe.java
return 0; } @Override protected int readParametersWireFormat ( byte[] buffer, int bufferIndex, int len ) { return 0; } @Override protected int readDataWireFormat ( byte[] buffer, int bufferIndex, int len ) { return 0; } @Override public String toString () {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 2.5K bytes - Viewed (0) -
cmd/admin-handlers.go
} updateStatus := madmin.ServerUpdateStatusV2{ DryRun: dryRun, Results: make([]madmin.ServerPeerUpdateStatus, 0, len(globalNotificationSys.allPeerClients)), } peerResults := make(map[string]madmin.ServerPeerUpdateStatus, len(globalNotificationSys.allPeerClients)) failedClients := make(map[int]bool, len(globalNotificationSys.allPeerClients)) if lrTime.Sub(currentReleaseTime) <= 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 11:32:32 UTC 2024 - 99.7K bytes - Viewed (0) -
internal/config/certs.go
} key, rest := pem.Decode(keyPEMBlock) if len(rest) > 0 { return tls.Certificate{}, ErrTLSUnexpectedData(nil).Msgf("The private key contains additional data") } if key == nil { return tls.Certificate{}, ErrTLSUnexpectedData(nil).Msgf("The private key is not readable") } if x509.IsEncryptedPEMBlock(key) { password := env.Get(EnvCertPassword, "") if len(password) == 0 { return tls.Certificate{}, ErrTLSNoPassword(nil)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 3.8K bytes - Viewed (0) -
cmd/bucket-metadata.go
b.objectLockConfig = nil } if len(b.VersioningConfigXML) != 0 { b.versioningConfig, err = versioning.ParseConfig(bytes.NewReader(b.VersioningConfigXML)) if err != nil { return err } } if len(b.QuotaConfigJSON) != 0 { b.quotaConfig, err = parseBucketQuota(b.Name, b.QuotaConfigJSON) if err != nil { return err } } if len(b.ReplicationConfigXML) != 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 28 15:32:18 UTC 2024 - 18.2K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/endpoint.go
} filteredCount := 0 for _, llb := range cla.Endpoints { filtered := make([]*endpoint.LbEndpoint, 0, len(llb.LbEndpoints)) for _, ep := range llb.LbEndpoints { if !filter.Verify(ep, cla.ClusterName) { continue } filtered = append(filtered, ep) } llb.LbEndpoints = filtered filteredCount += len(llb.LbEndpoints) } return cla, filteredCount
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 22 09:57:29 UTC 2024 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ObjectArrays.java
@Nullable Object[] src, int offset, int len, T[] dst) { checkPositionIndexes(offset, offset + len, src.length); if (dst.length < len) { dst = newArray(dst, len); } else if (dst.length > len) { @Nullable Object[] unsoundlyCovariantArray = dst; unsoundlyCovariantArray[len] = null; } arraycopy(src, offset, dst, 0, len); return dst; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponse.java
return 0; } @Override protected int readParametersWireFormat ( byte[] buffer, int bufferIndex, int len ) { this.length = SMBUtil.readInt4(buffer, bufferIndex); return 4; } @Override protected int readDataWireFormat ( byte[] buffer, int bufferIndex, int len ) { int start = bufferIndex;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 2.8K bytes - Viewed (0)