Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 380 for consumer (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            // Decode with len = 24 (minimum valid)
            int bytesConsumed = response.decode(buffer, 0, 24);
    
            // Verify - should consume 28 bytes even though len is 24
            assertEquals(28, bytesConsumed, "Should consume 28 bytes");
    
            byte[] resumeKey = response.getResumeKey();
            assertNotNull(resumeKey, "Resume key should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/TestLogHandler.java

        synchronized (lock) {
          list.clear();
        }
      }
    
      /** Returns a snapshot of the logged records. */
      /*
       * TODO(cpovirk): consider higher-level APIs here (say, assertNoRecordsLogged(),
       * getOnlyRecordLogged(), getAndClearLogRecords()...)
       *
       * TODO(cpovirk): consider renaming this method to reflect that it takes a snapshot (and/or return
       * an ImmutableList)
       */
      public List<LogRecord> getStoredLogRecords() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

                assertEquals(4096, response.getChunkBytesWritten());
                assertEquals(12288, response.getTotalBytesWritten());
            }
    
            @Test
            @DisplayName("Should return correct bytes consumed")
            void testReturnBytesConsumed() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[100];
                byte[] responseData = createValidCopyChunkResponse(8, 16384, 131072);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TopKSelector.java

      }
    
      /**
       * Adds each member of {@code elements} as a candidate for the top {@code k} elements. This
       * operation takes amortized linear time in the length of {@code elements}. The iterator is
       * consumed after this operation completes.
       *
       * <p>If all input data to this {@code TopKSelector} is in a single {@code Iterator}, prefer
       * {@link Ordering#leastOf(Iterator, int)}, which provides a simpler API for that use case.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

                int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length);
    
                assertTrue(bytesRead > 0);
                // readDataWireFormat returns bytes consumed from header, not full buffer
                assertEquals(28, bytesRead); // Header + one referral structure
                assertNotNull(response.getDfsResponse());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. docs/features/events.md

    System.out.println("REQUEST 1 (new connection)");
    try (Response response = client.newCall(request).execute()) {
      // Consume and discard the response body.
      response.body().source().readByteString();
    }
    
    System.out.println("REQUEST 2 (pooled connection)");
    try (Response response = client.newCall(request).execute()) {
      // Consume and discard the response body.
      response.body().source().readByteString();
    }
    ```
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterables.java

       * <p>To get the only element in a single-element {@code Iterable}, consider using {@link
       * #getOnlyElement(Iterable)} or {@link #getOnlyElement(Iterable, Object)} instead.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code stream.findFirst().orElse(defaultValue)}
       *
       * <p><b>Java 21+ users:</b> if {code iterable} is a {@code SequencedCollection} (e.g., any list),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

        @Test
        @DisplayName("Test decode returns correct bytes consumed")
        void testDecodeBytesConsumed() throws SMBProtocolDecodingException {
            // Prepare minimal buffer
            byte[] buffer = new byte[24];
    
            // Test with offset 0
            int bytesDecoded = response.decode(buffer, 0, 24);
            assertEquals(24, bytesDecoded, "Should return 24 bytes consumed from offset 0");
    
            // Test with different offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/DfsReferralData.java

         *
         * @return the share this referral points to
         */
        String getShare();
    
        /**
         * Get the number of characters from the UNC path that were consumed by this referral
         *
         * @return the number of characters from the unc path that were consumed by this referral
         */
        int getPathConsumed();
    
        /**
         * Get the replacement path for this referral
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/ForwardingLoadingCache.java

      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
      public V get(K key) throws ExecutionException {
        return delegate().get(key);
      }
    
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
      public V getUnchecked(K key) {
        return delegate().getUnchecked(key);
      }
    
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top