Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkType (0.13 sec)

  1. internal/hash/checksum.go

    			}
    		}
    		return t, s
    	}
    	checkType := func(c ChecksumType) {
    		if got := h.Get(c.Key()); got != "" {
    			// If already set, invalid
    			if t != ChecksumNone {
    				t = ChecksumInvalid
    				s = ""
    			} else {
    				t = c
    				s = got
    			}
    			return
    		}
    	}
    	checkType(ChecksumCRC32)
    	checkType(ChecksumCRC32C)
    	checkType(ChecksumSHA1)
    	checkType(ChecksumSHA256)
    	return t, s
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top