- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CanMerge (0.03 sec)
-
internal/hash/checksum.go
return xhttp.AmzChecksumTypeFullObject } if c.IsSet() { return xhttp.AmzChecksumTypeComposite } return "" } // CanMerge will return if the checksum type indicates that checksums can be merged. func (c ChecksumType) CanMerge() bool { return c.Is(ChecksumCRC64NVME) || c.Is(ChecksumCRC32C) || c.Is(ChecksumCRC32) } // Hasher returns a hasher corresponding to the checksum type.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 22 14:15:21 UTC 2025 - 18.3K bytes - Viewed (0) -
internal/hash/crc.go
// The size of the content that produced the second checksum must be provided. // Not all checksum types can be merged, use the CanMerge method to check. // Checksum types must match. func (c *Checksum) AddPart(other Checksum, size int64) error { if !other.Type.CanMerge() { return fmt.Errorf("checksum type cannot be merged") } if size == 0 { return nil } if !c.Type.Is(other.Type.Base()) {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Jan 20 14:49:07 UTC 2025 - 5.8K bytes - Viewed (0)