- Sort Score
- Result 10 results
- Languages All
Results 451 - 460 of 1,107 for len (0.03 sec)
-
android/guava-tests/test/com/google/common/io/RandomAmountInputStream.java
super(checkNotNull(in)); this.random = checkNotNull(random); } @Override public int read(byte[] b, int off, int len) throws IOException { return super.read(b, off, random.nextInt(len) + 1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestInputStream.java
throwIf(closed); throwIf(READ_THROWS); return in.read(); } @Override public int read(byte[] b, int off, int len) throws IOException { throwIf(closed); throwIf(READ_THROWS); return in.read(b, off, len); } @Override public long skip(long n) throws IOException { throwIf(closed); throwIf(SKIP_THROWS); return in.skip(n); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.5K 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(fmt.Sprintf("Count should work, but got err %v", err)) } if count != int64(len(users)) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 6.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java
* * @param input * @param offset * @param len */ public void update ( byte[] input, int offset, 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: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Aug 05 09:45:59 UTC 2018 - 10.6K bytes - Viewed (0) -
cmd/bucket-replication.go
if (checkOld > 0 && len(p.workers) != checkOld) || n == len(p.workers) || n < 1 { // Either already satisfied or worker count changed while we waited for the lock. return } for len(p.workers) < n { input := make(chan ReplicationWorkerOperation, 10000) p.workers = append(p.workers, input) go p.AddWorker(input, &p.activeWorkers) } for len(p.workers) > n {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 06:49:55 UTC 2024 - 116.1K bytes - Viewed (0) -
internal/grid/trace.go
TraceType: t.TraceType, FuncName: prefix + "." + h.String(), NodeName: remote, Time: start, Duration: end.Sub(start), Path: t.Subroute, Error: errString, Bytes: int64(len(req) + len(resp)), HTTP: &madmin.TraceHTTPStats{ ReqInfo: madmin.TraceRequestInfo{ Time: start, Proto: "grid", Method: "REQ", Client: local, Headers: nil, Path: t.Subroute,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 01 05:17:37 UTC 2024 - 4.1K 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 Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 26.8K 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() b.ResetTimer() for i := 0; i < b.N; i++ { err := v.DecodeMsg(dc) if err != nil { b.Fatal(err) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 9.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2SetInfoRequest.java
dstIndex += 16; SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, bufferOffsetOffset); int len = this.info.encode(dst, dstIndex); SMBUtil.writeInt4(len, dst, bufferLengthOffset); dstIndex += len; return dstIndex - start; } /** * {@inheritDoc} *
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 4.8K bytes - Viewed (0) -
internal/grid/connection.go
} case toSend = <-c.outQueue: if len(toSend) == 0 { continue } } if len(queue) < maxMergeMessages && queueSize+len(toSend) < writeBufferSize-1024 { if len(c.outQueue) == 0 { // Yield to allow more messages to fill. runtime.Gosched() } if len(c.outQueue) > 0 { queue = append(queue, toSend) queueSize += len(toSend) continue } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 46.7K bytes - Viewed (0)