Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 907 for lengths (0.04 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/ContentLengthHelper.java

            }
            maxLengthMap.put(mimeType, maxLength);
        }
    
        /**
         * Gets the maximum content length for a specific MIME type.
         * If no specific length is set for the MIME type, returns the default maximum length.
         * @param mimeType The MIME type to get the maximum length for
         * @return The maximum content length in bytes
         */
        public long getMaxLength(final String mimeType) {
            if (StringUtil.isBlank(mimeType)) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            @DisplayName("Should handle various offsets and lengths")
            @CsvSource({ "1024, 0, 1024", "1024, 100, 900", "1024, 500, 524", "2048, 1024, 1024", "4096, 2048, 2048", "65536, 32768, 32768" })
            void testVariousOffsetsAndLengths(int dataSize, int offset, int length) {
                byte[] data = new byte[dataSize];
                assertDoesNotThrow(() -> request.setData(data, offset, length));
            }
        }
    
        @Nested
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/NetbiosAddressTest.java

            assertNotNull(anyHosts);
            assertNotNull(masterBrowser);
            assertNotNull(smbServer);
    
            // Test that they have expected lengths
            assertEquals(16, anyHosts.length());
            assertEquals(15, masterBrowser.length());
            assertEquals(15, smbServer.length());
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/rdma/RdmaChannelInfo.java

     * addresses, and lengths for direct memory access operations.
     */
    public class RdmaChannelInfo {
    
        private final Smb2RdmaTransform transform;
    
        /**
         * Create new RDMA channel info
         *
         * @param remoteKey remote memory key for RDMA access (token)
         * @param address remote memory address (offset)
         * @param length length of the memory region
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                    final byte[] output = new byte[cipher.getOutputSize(input.length)];
                    int len = cipher.processBytes(input, 0, input.length, output, 0);
                    len += cipher.doFinal(output, len);
    
                    plaintext = new byte[ciphertext.length];
                    System.arraycopy(output, 0, plaintext, 0, ciphertext.length);
                }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/NetbiosNameTest.java

            // When
            String scope = mockNetbiosName.getScope();
    
            // Then
            assertNull(scope);
        }
    
        @Test
        @DisplayName("Should handle various name lengths")
        void testVariousNameLengths() {
            // NetBIOS names can be up to 15 characters
            String[] testNames = { "A", "SERVER", "LONGSERVERNAME", "EXACTLY15CHARS1" };
    
            for (String testName : testNames) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java

             * The priority length is the number of characters before any wildcard.
             *
             * @param pattern the path pattern
             * @return the priority length
             */
            private static int calculatePriorityLength(final String pattern) {
                // For priority, we count the pattern length, treating * as having length 0
                // and $ as having length 1
                int length = 0;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                    offset += name.length;
                }
    
                // Write data if present
                if (data != null && data.length > 0) {
                    System.arraycopy(data, 0, dst, offset, data.length);
                    offset += data.length;
                }
    
                // Pad to 8-byte boundary
                while ((offset - dstIndex) % 8 != 0) {
                    dst[offset++] = 0;
                }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            int paramWritten = trans2QueryPathInfo.writeParametersWireFormat(paramBuffer, 0);
            int dataWritten = trans2QueryPathInfo.writeDataWireFormat(dataBuffer, 0);
    
            // Verify lengths
            assertEquals(2, setupWritten);
            assertTrue(paramWritten > 6);
            assertEquals(0, dataWritten);
    
            // Verify setup content
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            try {
                // Time comparison between different length passwords
                long timeDiffLength = measureEqualsTime(auth1, auth2, TIMING_ITERATIONS);
    
                // Create same length passwords for comparison
                char[] password3 = "short".toCharArray();
                char[] password4 = "shore".toCharArray(); // Same length, different content
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top