- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 442 for bufs (0.03 seconds)
-
api/maven-api-xml/src/main/java/org/apache/maven/api/xml/ImmutableCollections.java
import java.util.NoSuchElementException; import java.util.Set; import java.util.function.BiFunction; import java.util.function.Function; import java.util.function.Predicate; /** * This should be removed when https://bugs.openjdk.org/browse/JDK-8323729 * is released in our minimum JDK. */ class ImmutableCollections { private static final Map<?, ?> EMPTY_MAP = new AbstractImmutableMap<>() { @OverrideCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Jul 07 11:47:42 GMT 2025 - 7.8K bytes - Click Count (0) -
internal/bpool/bpool_test.go
} bp.Put(b) // Check the size of the pool. if uint64(len(bp.c)) != size { t.Fatalf("bytepool size invalid: got %v want %v", len(bp.c), size) } // lets drain the buf channel first before we validate invalid buffers. for range size { bp.Get() // discard } // Try putting some invalid buffers into pool bp.Put(make([]byte, bp.w, bp.wcap-1)) // wrong capacity is rejected (less)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 2.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/ComparisonChain.java
* return COMPARATOR.compare(this, that); * } * } * * <p>With method references it is more succinct: {@code comparing(Foo::aString)} for example. * * <p>Using {@link Comparator} avoids certain types of bugs, for example when you meant to write * {@code .compare(a.foo, b.foo)} but you actually wrote {@code .compare(a.foo, a.foo)} or {@code * .compare(a.foo, b.bar)}. {@code ComparisonChain} also has a potential performance problem that
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 11.1K bytes - Click Count (0) -
cmd/data-usage-cache.go
select { case <-ctx.Done(): return ctx.Err() case maxConcurrentScannerSaves <- struct{}{}: } buf := bytebufferpool.Get() defer func() { <-maxConcurrentScannerSaves buf.Reset() bytebufferpool.Put(buf) }() if err := d.serializeTo(buf); err != nil { return err } save := func(name string, timeout time.Duration) error {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 34.7K bytes - Click Count (0) -
cmd/bucket-replication-handlers.go
if err = replicationConfig.Validate(bucket, sameTarget); err != nil { writeErrorResponse(ctx, w, errorCodes.ToAPIErrWithErr(ErrReplicationValidationError, err), r.URL) return } buf := bytes.Repeat([]byte("a"), 8) for _, rule := range replicationConfig.Rules { if rule.Status == replication.Disabled { continue }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 23.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
* with {@link Collection} itself). Prefer subtypes such as {@link ImmutableSet} or {@link * ImmutableList}, which have well-defined {@link #equals} semantics, thus avoiding a common source * of bugs and confusion. * * <h3>About <i>all</i> {@code Immutable-} collections</h3> * * <p>The remainder of this documentation applies to every public {@code Immutable-} type in thisCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java
* {@link java.util.TreeMap} can suppress it with {@code * FeatureSpecificTestSuiteBuilder.suppressing()} until <a * href="https://bugs.openjdk.org/browse/JDK-5045147">JDK-5045147</a> is fixed. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method getPutNullKeyUnsupportedMethod() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 9.1K bytes - Click Count (0) -
docs/en/docs/tutorial/extra-models.md
/// ## Reduce duplication { #reduce-duplication } Reducing code duplication is one of the core ideas in **FastAPI**. As code duplication increments the chances of bugs, security issues, code desynchronization issues (when you update in one place but not in the others), etc. And these models are all sharing a lot of the data and duplicating attribute names and types. We could do better.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 6.9K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java
helper = new AtomicReferenceFieldUpdaterAtomicHelper(); } catch (Exception // sneaky checked exception | Error atomicReferenceFieldUpdaterFailure) { // 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. // For these users fallback to a suboptimal implementation, based on synchronized. This
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 33.2K bytes - Click Count (0) -
cmd/object-api-utils_test.go
} for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { buf := make([]byte, 100) // make small buffer to ensure multiple reads are required for large case r, idxCB := newS2CompressReader(bytes.NewReader(tt.data), int64(len(tt.data)), false) defer r.Close() var rdrBuf bytes.Buffer _, err := io.CopyBuffer(&rdrBuf, r, buf) if err != nil { t.Fatal(err) } r.Close()Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 24.1K bytes - Click Count (0)