Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 180 for SUM (0.01 sec)

  1. cmd/object-handlers_test.go

    		}
    	)
    
    	type ObjectInput struct {
    		objectName  string
    		partLengths []int64
    
    		metaData map[string]string
    	}
    
    	objectLength := func(oi ObjectInput) (sum int64) {
    		for _, l := range oi.partLengths {
    			sum += l
    		}
    		return
    	}
    
    	// set of inputs for uploading the objects before tests for
    	// downloading is done. Data bytes are from DummyDataGen.
    	objectInputs := []ObjectInput{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  2. docs/smb3-features/03-multi-channel-design.md

        
        private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) {
            // Calculate total weight
            int totalWeight = channels.stream()
                .mapToInt(ChannelInfo::getScore)
                .sum();
            
            if (totalWeight == 0) {
                // All channels have zero score, pick randomly
                List<ChannelInfo> list = new ArrayList<>(channels);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  3. mvnw

    ##########################################################################################
    # End of extension
    ##########################################################################################
    
    # If specified, validate the SHA-256 sum of the Maven wrapper jar file
    wrapperSha256Sum=""
    while IFS="=" read -r key value; do
      case "$key" in wrapperSha256Sum)
        wrapperSha256Sum=$value
        break
        ;;
      esac
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Oct 14 22:24:15 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. cmd/object-api-putobject_test.go

    	}
    	uploadID := res.UploadID
    
    	// Upload part1.
    	fiveMBBytes := bytes.Repeat([]byte("a"), 5*humanize.MiByte)
    	md5Writer := md5.New()
    	md5Writer.Write(fiveMBBytes)
    	etag1 := hex.EncodeToString(md5Writer.Sum(nil))
    	sha256sum := ""
    	_, err = obj.PutObjectPart(context.Background(), bucket, object, uploadID, 1, mustGetPutObjReader(t, bytes.NewReader(fiveMBBytes), int64(len(fiveMBBytes)), etag1, sha256sum), opts)
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. cmd/erasure.go

    		if di.RootDisk {
    			rootDiskCount++
    		}
    	}
    
    	// Count offline disks as well to ensure consistent
    	// reportability of offline drives on local setups.
    	if len(disksInfo) == (rootDiskCount + offlineDisks.Sum()) {
    		// Success.
    		return onlineDisks, offlineDisks
    	}
    
    	// Root disk should be considered offline
    	for i := range disksInfo {
    		ep := disksInfo[i].Endpoint
    		if disksInfo[i].RootDisk {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/InputValidator.java

            }
        }
    
        /**
         * Safe integer addition with overflow check
         *
         * @param a first operand
         * @param b second operand
         * @return sum of a and b
         * @throws ArithmeticException if overflow occurs
         */
        public static int safeAdd(int a, int b) {
            validateIntegerAddition(a, b, "Addition");
            return a + b;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  7. cmd/encryption-v1.go

    	mac := hmac.New(sha256.New, d.objectEncryptionKey) // derive part encryption key from part ID and object key
    	mac.Write(partIDbin[:])
    	partEncryptionKey := mac.Sum(nil)
    
    	// Limit the reader, so the decryptor doesn't receive bytes
    	// from the next part (different DARE stream)
    	encLenToRead := d.parts[d.partIndex].Size - d.partEncRelOffset
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37.8K bytes
    - Viewed (0)
  8. cmd/erasure-object_test.go

    		}
    
    		h := md5.New()
    		h.Write(testCase.content)
    		expectedHash := h.Sum(nil)
    
    		h.Reset()
    		_, err = io.Copy(h, gr)
    		if err != nil {
    			t.Fatalf("Test %d: Failed to calculate md5sum of the object: %v", i+1, err)
    		}
    		gr.Close()
    		foundHash := h.Sum(nil)
    
    		if !bytes.Equal(foundHash, expectedHash) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 38.3K bytes
    - Viewed (0)
  9. api/go1.12.txt

    pkg runtime/debug, type Module struct
    pkg runtime/debug, type Module struct, Path string
    pkg runtime/debug, type Module struct, Replace *Module
    pkg runtime/debug, type Module struct, Sum string
    pkg runtime/debug, type Module struct, Version string
    pkg strings, func ReplaceAll(string, string, string) string
    pkg strings, method (*Builder) Cap() int
    pkg syscall (freebsd-386), const S_IRWXG = 56
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 02 21:21:53 UTC 2019
    - 13.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/ServerResponseValidator.java

            }
        }
    
        /**
         * Safely add integers checking for overflow
         *
         * @param a first value
         * @param b second value
         * @return sum
         * @throws SmbException if overflow would occur
         */
        public int safeAdd(int a, int b) throws SmbException {
            totalValidations.incrementAndGet();
    
            long result = (long) a + (long) b;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
Back to top