- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 277 for bufs (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
internal/bucket/bandwidth/reader.go
BucketOptions HeaderSize int } // Read implements a throttled read func (r *MonitoredReader) Read(buf []byte) (n int, err error) { if r.throttle == nil { return r.r.Read(buf) } if r.lastErr != nil { err = r.lastErr return n, err } b := r.throttle.Burst() // maximum available tokens need := len(buf) // number of bytes requested by caller hdr := r.opts.HeaderSize // remaining header bytes
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3.3K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/OpenJdk6ListTests.java
import java.util.Collection; import java.util.List; import junit.framework.Test; /** * Tests the {@link List} implementations of {@link java.util}, suppressing tests that trip known * OpenJDK 6 bugs. * * @author Kevin Bourrillion */ @AndroidIncompatible // test-suite builders public class OpenJdk6ListTests extends TestsForListsInJavaUtil { public static Test suite() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 2K bytes - Click Count (0) -
cmd/bitrot.go
// Calculate the size of the bitrot file and compare // it with the actual file size. if left != bitrotShardFileSize(partSize, shardSize, algo) { return errFileCorrupt } bufp := xioutil.ODirectPoolSmall.Get() defer xioutil.ODirectPoolSmall.Put(bufp) for left > 0 { // Read expected hash... h.Reset() n, err := io.ReadFull(r, hashBuf) if err != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.7K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/AsyncEventBus.java
* identifier} as the bus's name for logging purposes. * * @param identifier short name for the bus, for logging purposes. * @param executor Executor to use to dispatch events. It is the caller's responsibility to shut * down the executor after the last event has been posted to this event bus. */ public AsyncEventBus(String identifier, Executor executor) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
AtomicInteger deliveries = new AtomicInteger(); EventBus bus = new EventBus(); bus.register( new Object() { @Subscribe public void accept(String str) { holder.set(str); deliveries.incrementAndGet(); } }); String EVENT = "Hello!"; bus.post(EVENT);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 1.9K bytes - Click Count (0) -
cmd/utils.go
runtime.GC() var buf bytes.Buffer err := pprof.Lookup("heap").WriteTo(&buf, 0) return buf.Bytes(), err } case madmin.ProfilerBlock: runtime.SetBlockProfileRate(100) prof.stopFn = func() ([]byte, error) { var buf bytes.Buffer err := pprof.Lookup("block").WriteTo(&buf, 0) runtime.SetBlockProfileRate(0) return buf.Bytes(), err } case madmin.ProfilerMutex:
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 33K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/03-gopls.yml
name: Gopls bugs or feature requests description: Issues or feature requests for the Go language server (gopls) title: "x/tools/gopls: issue title" labels: ["gopls", "Tools"] body: - type: markdown attributes: value: "Please answer these questions before submitting your issue. Thanks!" - type: textarea id: gopls-version attributes: label: "gopls version" description: "Output of `gopls -v version` on the command line"
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri May 24 17:09:04 GMT 2024 - 1.8K bytes - Click Count (0) -
internal/store/queuestore.go
} // multiWrite - writes an item to the directory. func (store *QueueStore[I]) multiWrite(key Key, items []I) (err error) { buf := bytebufferpool.Get() defer bytebufferpool.Put(buf) enc := jsoniter.ConfigCompatibleWithStandardLibrary.NewEncoder(buf) for i := range items { if err = enc.Encode(items[i]); err != nil { return err } }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
byte[] buf = new byte[16]; // Skip advances internal file pointer; next read should use this offset in.skip(2); // Act int n = in.readDirect(buf, 0, 5); // Assert assertEquals(3, n, "Should report bytes read from SMB2 response");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java
import java.util.concurrent.locks.LockSupport; import org.jspecify.annotations.Nullable; @GwtCompatible @ReflectionSupport(value = ReflectionSupport.Level.FULL) // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause // getDeclaredField to throw a NoSuchFieldException when the field is definitely there. // Since this class only needs CAS on one field, we can avoid this bug by extending AtomicReference
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 10K bytes - Click Count (0)