Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 66 for calculation (0.66 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // Even with -1, the do-while loop executes at least once due to the bug
            assertEquals(1, response.getResults().length);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with offset calculation")
        void testReadBytesWireFormatOffsetCalculation() throws Exception {
            response = new Smb2QueryDirectoryResponse(mockConfig, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            void testVariousOffsets(long offset) {
                assertDoesNotThrow(() -> request.setOffset(offset));
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size correctly")
            void testSize() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SmbCircuitBreaker.java

                if (maxResponseTime.compareAndSet(currentMax, responseTimeMs)) {
                    break;
                }
                currentMax = maxResponseTime.get();
            }
    
            // Add to history for percentile calculation
            responseTimeHistory.addLast(responseTimeMs);
            if (responseTimeHistory.size() > 1000) { // Keep last 1000 measurements
                responseTimeHistory.removeFirst();
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameTest.java

        }
    
        @Test
        void readWireFormat_withNonSpacePaddingCharacters_shouldPreserveLength() {
            // Test that non-space characters in padding are preserved in length calculation
            byte[] src = new byte[100];
            src[0] = 0x20;
    
            // Encode "AB" followed by non-space padding
            src[1] = 'E';
            src[2] = 'B'; // A
            src[3] = 'E';
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            assertArrayEquals(bufferCopy, buffer, "Buffer content should not be modified");
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with offset calculation")
        void testReadBytesWireFormatOffsetCalculation() throws Exception {
            response = new Smb2QueryInfoResponse(mockConfig, Smb2Constants.SMB2_0_INFO_FILE, FileInformation.FILE_INTERNAL_INFO);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

        }
    
        @Test
        @DisplayName("Test readDataWireFormat with converter offset")
        void testReadDataWireFormatWithConverter() throws Exception {
            // Set converter to test offset calculation
            int converterValue = 100;
            setConverter(response, converterValue);
            setNumEntries(response, 1);
    
            String serverName = "TEST";
            String comment = "Test comment";
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                assertEquals(0, testMessage.getSessionId());
                assertEquals(0, testMessage.getTreeId());
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size8 without alignment")
            void testSize8NoAlignment() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        }
    
        /**
         * Calculates the wire format length of a string
         * @param str string to measure
         * @param offset current buffer offset for alignment calculation
         * @return string length
         */
        public int stringWireLength(final String str, final int offset) {
            int len = str.length() + 1;
            if (this.useUnicode) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                    assertEquals(i + 1, context.getHashAlgos()[i]);
                }
                assertArrayEquals(salt, context.getSalt());
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size for null hash algorithms and salt")
            void testSizeWithNullHashAlgosAndSalt() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  10. src/main/resources/fess_config.properties

    search_engine.heartbeat_interval=10000
    
    # Cipher algorithm used for encryption.
    app.cipher.algorism=aes
    # Secret key for encryption (change this value for production).
    app.cipher.key=___change__me___
    # Algorithm for digest calculation.
    app.digest.algorism=sha256
    # Regex pattern for properties to encrypt.
    app.encrypt.property.pattern=.*password|.*key|.*token|.*secret
    
    # Extension names for application customization.
    app.extension.names=
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 54.8K bytes
    - Viewed (0)
Back to top