Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ChecksumFromBytes (0.06 sec)

  1. internal/hash/checksum_test.go

    	// Test AppendTo serialization
    	var serialized []byte
    	serialized = finalChecksum.AppendTo(serialized, checksumCombined)
    
    	// Use ChecksumFromBytes to deserialize the final checksum
    	chksmOut := ChecksumFromBytes(serialized)
    	if chksmOut == nil {
    		t.Fatal("ChecksumFromBytes returned nil")
    	}
    
    	// Assert they are exactly equal
    	if !chksmOut.Equal(finalChecksum) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. internal/hash/checksum.go

    			b = append(b, parts...)
    		}
    	}
    	return b
    }
    
    // ChecksumFromBytes reconstructs a Checksum struct from the serialized bytes created in AppendTo()
    // Returns nil if the bytes are invalid or empty.
    // AppendTo() can append a serialized Checksum to another already-serialized Checksum,
    // however, in practice, we only use one at a time.
    // ChecksumFromBytes only returns the first one and no part checksums.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    			}
    
    			// The source object has a checksum set, we need the destination to have one too.
    			if srcChecksumDecrypted != nil {
    				dstOpts.WantChecksum = hash.ChecksumFromBytes(srcChecksumDecrypted)
    
    				// When an object is being copied from a source that is multipart, the destination will
    				// no longer be multipart, and thus the checksum becomes full-object instead. Since
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 120.6K bytes
    - Viewed (0)
Back to top