Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 257 for consumed (0.31 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                assertDoesNotThrow(() -> concreteImplementation.fixupDomain(domain));
            }
    
            @Test
            @DisplayName("Should strip path consumed")
            void testStripPathConsumed() {
                int consumedAmount = 5;
    
                // Test with mock
                doNothing().when(mockReferralData).stripPathConsumed(consumedAmount);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        // Note that this may be be an encoded "end of data" header.
        return DerHeader(tagClass, tag, constructed, length)
      }
    
      /**
       * Consume a header and execute [block], which should consume the entire value described by the
       * header. It is an error to not consume a full value in [block].
       */
      internal inline fun <T> read(
        name: String?,
        block: (DerHeader) -> T,
      ): T {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

      /**
       * Null once the file has a complete copy of the upstream bytes. Only the [upstreamReader] thread
       * may access this source.
       */
      var upstream: Source?,
      /** The number of bytes consumed from [upstream]. Guarded by this. */
      var upstreamPos: Long,
      /** User-supplied additional data persisted with the source data. */
      private val metadata: ByteString,
      /** The maximum size of [buffer]. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/smb/DfsImpl.java

                            next = next.next();
                        } while (next != dr);
    
                        if (dr.getPathConsumed() > (path != null ? path.length() : 0)) {
                            log.error("Consumed more than we provided");
                        }
    
                        link = path != null && dr.getPathConsumed() > 0 ? path.substring(0, dr.getPathConsumed()) : "\\";
                        dr.setLink(link);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  6. 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)
  7. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertEquals("smb://dfs-server/dfs-share" + l.getUNCPath().replace('\\', '/'), l.getDfsPath());
            assertEquals("dfs-share", l.getShare());
    
            // Path consumed negative -> coerced to 0
            when(dr.getPathConsumed()).thenReturn(-1);
            String unc2 = l.handleDFSReferral(dr, null);
            assertTrue(unc2.contains("dfs/path") || unc2.contains("dfs\\path"));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            // Decode
            int bytesDecoded = smbInfoAllocation.decode(buffer, 0, buffer.length);
    
            // Verify we read exactly 20 bytes (4 + 4 + 4 + 4 + 4)
            // Note: bytesPerSect is read as Int2 but 4 bytes are consumed (padding)
            assertEquals(20, bytesDecoded);
        }
    
        @Test
        @DisplayName("Test capacity calculation overflow handling")
        void testCapacityCalculationOverflow() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                assertEquals(free * sectPerAlloc * bytesPerSect, fileFsSizeInfo.getFree());
            }
    
            @Test
            @DisplayName("Should return correct number of bytes consumed from buffer")
            void shouldReturnCorrectBytesConsumed() throws SMBProtocolDecodingException {
                // Given - larger buffer than needed
                byte[] buffer = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                assertEquals(callerFree * sectPerAlloc * bytesPerSect, fileFsFullSizeInfo.getFree());
            }
    
            @Test
            @DisplayName("Should return correct number of bytes consumed from buffer")
            void shouldReturnCorrectBytesConsumed() throws SMBProtocolDecodingException {
                // Given - larger buffer than needed
                byte[] buffer = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
Back to top