Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 424 for lengths (0.07 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/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)
  3. 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)
  4. 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)
  5. src/main/java/jcifs/smb1/dcerpc/rpc.idl

    		uuid_t uuid;
    	} policy_handle;
    
    	/*
    	 * typedef struct _UNICODE_STRING
    	 *     USHORT Length;
    	 *     USHORT MaximumLength;
    	 *     [size_is(MaximumLength / 2), length_is((Length) / 2) ] USHORT *  Buffer;
    	 * } UNICODE_STRING;
    	 */
    
    	typedef struct {
    		uint16_t length;
    		uint16_t maximum_length;
    		[length_is(length / 2),size_is(maximum_length / 2)] uint16_t *buffer;
    	} unicode_string;
    
    	/* 
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/rpc.idl

    		uuid_t uuid;
    	} policy_handle;
    
    	/*
    	 * typedef struct _UNICODE_STRING
    	 *     USHORT Length;
    	 *     USHORT MaximumLength;
    	 *     [size_is(MaximumLength / 2), length_is((Length) / 2) ] USHORT *  Buffer;
    	 * } UNICODE_STRING;
    	 */
    
    	typedef struct {
    		uint16_t length;
    		uint16_t maximum_length;
    		[length_is(length / 2),size_is(maximum_length / 2)] uint16_t *buffer;
    	} unicode_string;
    
    	/* 
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/UnicodeStringTest.java

            assertEquals((testStringTrue.length() + 1) * 2, unicodeStringTrue.length, "Length should include zterm");
            assertEquals((testStringTrue.length() + 1) * 2, unicodeStringTrue.maximum_length, "Maximum length should include zterm");
            assertNotNull(unicodeStringTrue.buffer, "Buffer should not be null");
            assertEquals(testStringTrue.length() + 1, unicodeStringTrue.buffer.length, "Buffer length should include zterm");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            System.arraycopy(testData, 0, buffer, 10, testData.length);
    
            int result = response.readDataWireFormat(buffer, 10, testData.length);
    
            assertEquals(testData.length, result);
            // Verify data was copied to outputBuffer
            byte[] expectedData = new byte[testData.length];
            System.arraycopy(outputBuffer, 0, expectedData, 0, testData.length);
            assertArrayEquals(testData, expectedData);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/pac/PacUnicodeString.java

         * @param pointer the pointer/offset to the string data
         */
        public PacUnicodeString(final short length, final short maxLength, final int pointer) {
            this.length = length;
            this.maxLength = maxLength;
            this.pointer = pointer;
        }
    
        /**
         * Gets the actual length of the string in bytes.
         *
         * @return the string length
         */
        public short getLength() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/PacUnicodeStringTest.java

         * Tests the {@link PacUnicodeString#check(String)} method with a string of incorrect length.
         */
        @Test
        void testCheck_withInvalidLength_throwsException() {
            // Length is 10 bytes, so expected string length is 5 characters
            PacUnicodeString pacString = new PacUnicodeString((short) 10, (short) 20, 100);
            String testString = "too-long"; // Length is 8
    
            // Expect a PACDecodingException to be thrown
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top