Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ChecksumStringToType (0.72 sec)

  1. internal/hash/checksum.go

    }
    
    // IsSet returns whether the type is valid and known.
    func (c ChecksumType) IsSet() bool {
    	return !c.Is(ChecksumInvalid) && !c.Base().Is(ChecksumNone)
    }
    
    // ChecksumStringToType is like NewChecksumType but without the `mode`
    func ChecksumStringToType(alg string) ChecksumType {
    	switch strings.ToUpper(alg) {
    	case "CRC32":
    		return ChecksumCRC32
    	case "CRC32C":
    		return ChecksumCRC32C
    	case "SHA1":
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
Back to top