- Sort Score
- Result 10 results
- Languages All
Results 471 - 480 of 1,051 for Len (0.94 sec)
-
tests/scanner_valuer_test.go
ExampleStruct ExampleStruct ExampleStructPtr *ExampleStruct } type EncryptedData []byte func (data *EncryptedData) Scan(value interface{}) error { if b, ok := value.([]byte); ok { if len(b) < 3 || b[0] != '*' || b[1] != '*' || b[2] != '*' { return errors.New("Too short") } *data = append((*data)[0:], b[3:]...) return nil } else if s, ok := value.(string); ok { *data = []byte(s[3:])
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Wed Jun 07 07:02:07 UTC 2023 - 10.6K bytes - Viewed (0) -
internal/auth/credentials.go
func CreateNewCredentialsWithMetadata(accessKey, secretKey string, m map[string]any, tokenSecret string) (cred Credentials, err error) { if len(accessKey) < accessKeyMinLen || len(accessKey) > accessKeyMaxLen { return Credentials{}, ErrInvalidAccessKeyLength } if len(secretKey) < secretKeyMinLen || len(secretKey) > secretKeyMaxLen { return Credentials{}, ErrInvalidSecretKeyLength } cred.AccessKey = accessKey
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 11.8K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance_gen.go
for za0001 := range z.Buckets { s += msgp.StringPrefixSize + len(z.Buckets[za0001]) } s += 4 + msgp.ArrayHeaderSize for za0002 := range z.RebalancedBuckets { s += msgp.StringPrefixSize + len(z.RebalancedBuckets[za0002]) }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 26.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
* @return string length */ public int stringWireLength(final String str, final int offset) { int len = str.length() + 1; if (this.useUnicode) { len = str.length() * 2 + 2; len = offset % 2 != 0 ? len + 1 : len; } return len; } /** * Calculates the length of a null-terminated string in the buffer. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0) -
tests/count_test.go
} if count != int64(len(users)) { t.Errorf("Count() method should get correct value, expect: %v, got %v", count, len(users)) } if err := DB.Model(&User{}).Where("name = ?", user1.Name).Or("name = ?", user3.Name).Count(&count).Find(&users).Error; err != nil { t.Errorf("Count should work, but got err %v", err) } if count != int64(len(users)) {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Sep 08 09:19:22 UTC 2025 - 6.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java
* @param len * The length of data to process */ public void update(final byte[] input, final int offset, final int len) { if (log.isTraceEnabled()) { log.trace("update: " + this.updates + " " + offset + ":" + len); log.trace(Hexdump.toHexString(input, offset, Math.min(len, 256))); } if (len == 0) { return; /* CRITICAL */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.9K bytes - Viewed (0) -
internal/event/targetlist.go
t.TotalEvents = list.totalEvents.Load() t.CurrentQueuedCalls = int64(len(list.queue)) t.EventsErrorsTotal = list.eventsErrorsTotal.Load() list.RLock() defer list.RUnlock() t.TargetStats = make(map[TargetID]TargetStat, len(list.targets)) for id, target := range list.targets { var currentQueue int if st := target.Store(); st != nil { currentQueue = st.Len() } stats := list.getStatsByTargetID(id)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.2K bytes - Viewed (0) -
internal/crypto/sse-kms.go
// Otherwise, the caller has passed an invalid argument combination. if keyID == "" && len(kmsKey) != 0 { logger.CriticalIf(context.Background(), errors.New("The key ID must not be empty if a KMS data key is present")) } if keyID != "" && len(kmsKey) == 0 { logger.CriticalIf(context.Background(), errors.New("The KMS data key must not be empty if a key ID is present")) }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 8.5K bytes - Viewed (0) -
ci/official/utilities/extract_resultstore_links.py
with open(file_path, 'r', encoding='utf-8', errors='ignore') as f: log_lines = f.read().splitlines() result_store_links: ResultDictType = {} current_url = None for i in range(len(log_lines)): line = log_lines[i] result_store_line_match = re.search(RESULT_STORE_LINK_RE, line) if not result_store_line_match: continue url = result_store_line_match.group(1)
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Wed Nov 08 17:50:27 UTC 2023 - 10.9K bytes - Viewed (0) -
cmd/storage-datatypes_test.go
v := VolInfo{ Name: "uuid", Created: time.Now(), } var buf bytes.Buffer msgp.Encode(&buf, &v) rd := msgp.NewEndlessReader(buf.Bytes(), b) dc := msgp.NewReader(rd) b.Log("Size:", buf.Len(), "bytes") b.SetBytes(1) b.ReportAllocs() for b.Loop() { err := v.DecodeMsg(dc) if err != nil { b.Fatal(err) } } } func BenchmarkDecodeDiskInfoMsgp(b *testing.B) { v := DiskInfo{Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.1K bytes - Viewed (0)