Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,848 for lengths (0.04 sec)

  1. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            firstInstance.decode(originalBuffer, 0, originalBuffer.length);
    
            // Encode from first instance
            byte[] encodedBuffer = new byte[8];
            firstInstance.encode(encodedBuffer, 0);
    
            // Decode into second instance
            FileInternalInfo secondInstance = new FileInternalInfo();
            secondInstance.decode(encodedBuffer, 0, encodedBuffer.length);
    
            // Verify both instances have same values
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/FileEntryTest.java

                assertNull(mock.getName());
            }
    
            @Test
            @DisplayName("Negative length is allowed via mock")
            void negativeLength() {
                FileEntry mock = mock(FileEntry.class);
                when(mock.length()).thenReturn(-10L);
                assertEquals(-10L, mock.length());
            }
        }
    
        @ParameterizedTest(name = "getType returns {0}")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/text/Tokenizer.java

        private boolean processWord() {
            if ((peekct & CT_ALPHA) != 0) {
                int i = 0;
                do {
                    if (i >= buf.length) {
                        final char[] nb = new char[buf.length * 2];
                        System.arraycopy(buf, 0, nb, 0, buf.length);
                        buf = nb;
                    }
                    buf[i++] = (char) peekc;
                    peekc = read();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

                    throw new MaxLengthExceededException("Content length (" + contentLength + " bytes) exceeds the maximum allowed length ("
                            + maxContentLength + " bytes).");
                }
                if (contentLength == 0) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("The content length is 0.");
                    }
                    return new ExtractData(StringUtil.EMPTY);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            @Test
            @DisplayName("Should handle negative length in verify method")
            void testVerifyNegativeLength() {
                byte[] data = new byte[128];
                boolean result = digest.verify(data, 0, -1, 0, response);
                assertFalse(result, "Should return false for negative length");
            }
    
            @Test
            @DisplayName("Should handle offset+length exceeding buffer size in verify method")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

                final int code = bytesReader.readVInt();
                final int count = code >>> 1;
                for (int i = 0; i < count; i++) {
                    synonymMap.words.get(bytesReader.readVInt(), scratchBytes);
                    if (scratchChars.chars.length < scratchBytes.length) {
                        scratchChars.chars = new char[scratchBytes.length];
                    }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 17K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java

      public final Entry<String, String>[] createArray(int length) {
        return (Entry<String, String>[]) new Entry<?, ?>[length];
      }
    
      @Override
      public final String[] createKeyArray(int length) {
        return new String[length];
      }
    
      @Override
      public final String[] createValueArray(int length) {
        return new String[length];
      }
    
      /** Returns the original element list, unchanged. */
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

          for (String comp : components) {
            sb.append(comp);
            sb.append(DELIMITER_STRING);
          }
          if (sb.length() > 0) {
            sb.setLength(sb.length() - DELIMITER_STRING.length());
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/FileEntryTest.java

                    Arguments.of((LongGetter) FileEntry::length, -100L, "negative length"),
                    Arguments.of((LongGetter) FileEntry::length, 0L, "zero length"),
                    Arguments.of((LongGetter) FileEntry::length, 1L, "small length"));
        }
    
        @ParameterizedTest(name = "Long getter {2} returns {1}")
        @MethodSource("longGetterProvider")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/PacMacTest.java

            byte[] mac = PacMac.calculateMacArcfourHMACMD5(3, key, TEST_DATA);
            assertNotNull(mac);
            assertEquals(16, mac.length);
    
            // Test with a different key usage
            byte[] mac2 = PacMac.calculateMacArcfourHMACMD5(9, key, TEST_DATA);
            assertNotNull(mac2);
            assertEquals(16, mac2.length);
    
            // Test with another key usage
            byte[] mac3 = PacMac.calculateMacArcfourHMACMD5(23, key, TEST_DATA);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top