Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for allocate (0.21 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        val address = factory.newHttpsAddress()
        proxySelector.proxies.add(proxyA)
        proxySelector.proxies.add(proxyB)
        var routeSelector = newRouteSelector(address)
        dns[PROXY_A_HOST] = dns.allocate(1)
        dns[PROXY_B_HOST] = dns.allocate(1)
    
        // Mark the ProxyA route as failed.
        val selection = routeSelector.next()
        dns.assertRequests(PROXY_A_HOST)
        val route = selection.next()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Buffer.class, ByteBuffer.allocate(0))
              .put(CharBuffer.class, CharBuffer.allocate(0))
              .put(ByteBuffer.class, ByteBuffer.allocate(0))
              .put(ShortBuffer.class, ShortBuffer.allocate(0))
              .put(IntBuffer.class, IntBuffer.allocate(0))
              .put(LongBuffer.class, LongBuffer.allocate(0))
              .put(FloatBuffer.class, FloatBuffer.allocate(0))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Buffer.class, ByteBuffer.allocate(0))
              .put(CharBuffer.class, CharBuffer.allocate(0))
              .put(ByteBuffer.class, ByteBuffer.allocate(0))
              .put(ShortBuffer.class, ShortBuffer.allocate(0))
              .put(IntBuffer.class, IntBuffer.allocate(0))
              .put(LongBuffer.class, LongBuffer.allocate(0))
              .put(FloatBuffer.class, FloatBuffer.allocate(0))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    }
    
    void TF_InitPlugin(TF_FilesystemPluginInfo* info) {
      info->plugin_memory_allocate = plugin_memory_allocate;
      info->plugin_memory_free = plugin_memory_free;
      info->num_schemes = 2;
      info->ops = static_cast<TF_FilesystemPluginOps*>(
          plugin_memory_allocate(info->num_schemes * sizeof(info->ops[0])));
      ProvideFilesystemSupportFor(&info->ops[0], "");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return CharBuffer.allocate(generateInt());
      }
    
      @Generates
      ByteBuffer generateByteBuffer() {
        return ByteBuffer.allocate(generateInt());
      }
    
      @Generates
      ShortBuffer generateShortBuffer() {
        return ShortBuffer.allocate(generateInt());
      }
    
      @Generates
      IntBuffer generateIntBuffer() {
        return IntBuffer.allocate(generateInt());
      }
    
      @Generates
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      }
    
      fun assertRequests(vararg expectedHosts: String?) {
        assertThat(requestedHosts).containsExactly(*expectedHosts)
        requestedHosts.clear()
      }
    
      /** Allocates and returns `count` fake IPv4 addresses like [255.0.0.100, 255.0.0.101].  */
      fun allocate(count: Int): List<InetAddress> {
        val from = nextAddress
        nextAddress += count
        return (from until nextAddress)
          .map {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/networking/v1alpha1/generated.proto

    // Node.  A ClusterCIDR is eligible to be used for a given Node when the node
    // selector matches the node in question and has free CIDRs to allocate.  In
    // case of multiple matching ClusterCIDR resources, the allocator will attempt
    // to break ties using internal heuristics, but any ClusterCIDR whose node
    // selector matches the Node may be used.
    message ClusterCIDR {
      // Standard object's metadata.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return CharBuffer.allocate(generateInt());
      }
    
      @Generates
      ByteBuffer generateByteBuffer() {
        return ByteBuffer.allocate(generateInt());
      }
    
      @Generates
      ShortBuffer generateShortBuffer() {
        return ShortBuffer.allocate(generateInt());
      }
    
      @Generates
      IntBuffer generateIntBuffer() {
        return IntBuffer.allocate(generateInt());
      }
    
      @Generates
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  9. internal/s3select/csv/reader.go

    		if r.err != nil {
    			return nil, r.err
    		}
    		// Move to next block
    		item, ok := <-r.queue
    		if !ok {
    			r.err = io.EOF
    			return nil, r.err
    		}
    		//nolint:staticcheck // SA6002 Using pointer would allocate more since we would have to copy slice header before taking a pointer.
    		r.csvDstPool.Put(r.current)
    		r.current = <-item.dst
    		r.err = item.err
    		r.recordsRead = 0
    	}
    	csvRecord := r.current[r.recordsRead]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmServiceTest.java

        }
    
        @Test
        void emptySha1Calculator() {
            ChecksumAlgorithmService.ChecksumCalculator calculator =
                    service.select("SHA-1").getCalculator();
            calculator.update(ByteBuffer.allocate(0));
            assertEquals(calculator.checksum(), "da39a3ee5e6b4b0d3255bfef95601890afd80709");
        }
    
        @Test
        void calculateByte() throws IOException {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Dec 21 08:05:10 GMT 2023
    - 4.2K bytes
    - Viewed (0)
Back to top