Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shortHashString (0.27 sec)

  1. src/cmd/compile/internal/staticdata/data.go

    }
    
    const (
    	stringSymPrefix  = "go:string."
    	stringSymPattern = ".gostring.%d.%s"
    )
    
    // shortHashString converts the hash to a string for use with stringSymPattern.
    // We cut it to 16 bytes and then base64-encode to make it even smaller.
    func shortHashString(hash []byte) string {
    	return base64.StdEncoding.EncodeToString(hash[:16])
    }
    
    // StringSym returns a symbol containing the string s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:08:50 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top