Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,129 for here (0.03 sec)

  1. internal/ringbuffer/ring_buffer_benchmark_test.go

    	buf := make([]byte, 512)
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    		rb.Read(buf)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncRead(b *testing.B) {
    	// Pretty useless benchmark, but it's here for completeness.
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    
    	go func() {
    		for {
    			rb.Read(buf)
    		}
    	}()
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/events.md

    Let's start with an example and then see it in detail.
    
    We create an async function `lifespan()` with `yield` like this:
    
    {* ../../docs_src/events/tutorial003.py hl[16,19] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:36:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Header.kt

      @JvmField val name: ByteString,
      /** Value in UTF-8 encoding. */
      @JvmField val value: ByteString,
    ) {
      @JvmField val hpackSize = 32 + name.size + value.size
    
      // TODO: search for toLowerCase and consider moving logic here.
      constructor(name: String, value: String) : this(name.encodeUtf8(), value.encodeUtf8())
    
      constructor(name: ByteString, value: String) : this(name, value.encodeUtf8())
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                return new Iterator<Integer>() {
                  @Override
                  public void remove() {
                    // We should throw here, but we won't!
                  }
    
                  @Override
                  public Integer next() {
                    // We should throw here, but we won't!
                    return 0;
                  }
    
                  @Override
                  public boolean hasNext() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. internal/config/compress/legacy.go

    )
    
    // Legacy envs.
    const (
    	EnvCompress                 = "MINIO_COMPRESS"
    	EnvCompressMimeTypesLegacy1 = "MINIO_COMPRESS_MIMETYPES"
    
    	// These envs were wrong but we supported them for a long time
    	// so keep them here to support existing deployments.
    	EnvCompressAllowEncryptionLegacy = "MINIO_COMPRESS_ALLOW_ENCRYPTION"
    	EnvCompressExtensionsLegacy      = "MINIO_COMPRESS_EXTENSIONS"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jul 17 15:43:14 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndXResponse.java

            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
            bufferIndex += len + 1;
            // win98 observed not returning nativeFileSystem
    /* Problems here with iSeries returning ASCII even though useUnicode = true
     * Fortunately we don't really need nativeFileSystem for anything.
            if( byteCount > bufferIndex - start ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/DefaultConflictResolverFactory.java

    import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
    
    /**
     * A conflict resolver factory that obtains instances from a plexus container.
     *
     * TODO you don't need the container in here with the active maps (jvz).
     * @since 3.0
     */
    @Named
    @Singleton
    @Deprecated
    public class DefaultConflictResolverFactory implements ConflictResolverFactory, Contextualizable {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java

        return unsafeDelegateList(delegateList().subList(fromIndex, toIndex));
      }
    
      @Override
      public Object[] toArray() {
        // Note that ArrayList.toArray() doesn't work here because it returns E[]
        // instead of Object[].
        return delegateList().toArray(new Object[size()]);
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        return delegateList().equals(obj);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/SingletonImmutableSet.java

    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    @ElementTypesAreNonnullByDefault
    final class SingletonImmutableSet<E> extends ImmutableSet<E> {
      // We deliberately avoid caching the asList and hashCode here, to ensure that with
      // compressed oops, a SingletonImmutableSet packs all the way down to the optimal 16 bytes.
    
      final transient E element;
    
      SingletonImmutableSet(E element) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/TypeParameter.java

     * support even a "normal" `TypeParameter<T>` when `<T>` has a nullable bound. (See the discussion
     * on TypeToken.where.) So, in the interest of failing fast and encouraging the user to switch to a
     * non-null bound if possible, let's require a non-null bound here.
     *
     * TODO(cpovirk): Elaborate on "wouldn't behave as users might expect."
     */
    public abstract class TypeParameter<T> extends TypeCapture<T> {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 2.5K bytes
    - Viewed (0)
Back to top