Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 248 for calculated (0.25 seconds)

  1. src/main/java/jcifs/internal/smb2/io/Smb2WriteRequest.java

            dstIndex += 4;
    
            // WriteChannelInfo (Offset/Length for SMB2_RDMA_TRANSFORM)
            if (rdmaChannelInfo != null && channel == Smb2Constants.SMB2_CHANNEL_RDMA_V1) {
                // Calculate offset for SMB2_RDMA_TRANSFORM after data
                int transformOffset = 112 + this.dataLength; // After header (64) + write req (48) + data
                SMBUtil.writeInt2(transformOffset, dst, dstIndex); // writeChannelInfoOffset
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  2. docs/debugging/inspect/main.go

    		os.Exit(1)
    	}
    	for _, input := range inputs {
    		processFile(input, privateKeys)
    	}
    }
    
    func processFile(inputFileName string, privateKeys [][]byte) {
    	// Calculate the output file name
    	var outputFileName string
    	switch {
    	case strings.HasSuffix(inputFileName, ".enc"):
    		outputFileName = strings.TrimSuffix(inputFileName, ".enc") + ".zip"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 17 17:09:42 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size correctly")
            void testSize() {
                int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 49 + 7) / 8) * 8;
                assertEquals(expectedSize, request.size());
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java

            hints.put(MavenModelMerger.CHILD_PATH_ADJUSTMENT, getChildPathAdjustment(child, parent, childPath));
            merger.merge(child, parent, false, hints);
        }
    
        /**
         * Calculates the relative path from the base directory of the parent to the parent directory of the base directory
         * of the child. The general idea is to adjust inherited URLs to match the project layout (in SCM).
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                assertEquals("Expected structureSize = 4", exception.getMessage());
            }
    
            @Test
            @DisplayName("Should correctly calculate bytes read from different starting positions")
            void testReadBytesWireFormatDifferentStartPositions() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[20];
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  6. maven-tests/mvnw

      ;;
    maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
    *) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
    esac
    
    # apply MVNW_REPOURL and calculate MAVEN_HOME
    # maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash>
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Sep 25 18:22:49 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

            }
            return leastLoadedChannel != null ? leastLoadedChannel : channels.iterator().next();
        }
    
        private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) {
            // Calculate total weight
            int totalWeight = 0;
            for (ChannelInfo channel : channels) {
                totalWeight += channel.getScore();
            }
    
            if (totalWeight == 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  8. docs/debugging/reorder-disks/main.go

    	if err != nil {
    		log.Fatal(err)
    	}
    
    	setSize := len(format.XL.Sets[0])
    
    	expectedDisksName := make(map[string]string)
    	actualDisksName := make(map[string]string)
    
    	// Calculate the set/disk index
    	for _, disk := range localDisks {
    		expectedDisksName[fmt.Sprintf("%d-%d", disk.index/setSize, disk.index%setSize)] = disk.path
    		format, err := getFormatJSON(disk.path)
    		if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 24 23:05:23 GMT 2024
    - 5.4K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                long timeMiddle = measureEqualsTime(baseAuth, middleAuth, TIMING_ITERATIONS);
                long timeEnd = measureEqualsTime(baseAuth, endAuth, TIMING_ITERATIONS);
    
                // Calculate relative timing differences
                double maxTime = Math.max(Math.max(timeStart, timeMiddle), timeEnd);
                double minTime = Math.min(Math.min(timeStart, timeMiddle), timeEnd);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  10. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/runtimes/CheckTargetRuntimes.kt

                        ```
    
                        The following projects must be updated:
                    """.trimIndent() + "\n" + failures.joinToString("\n") { " - $it" })
            }
        }
    
        /**
         * Calculates the new build file text for a project or returns a failure
         * message if the build file could not be updated.
         */
        private fun calculateBuildFileMutation(
            projectPath: String,
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:40:18 GMT 2026
    - 13.8K bytes
    - Click Count (0)
Back to Top