Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isByteCount (0.09 sec)

  1. src/cmd/compile/internal/walk/builtin.go

    func isRuneCount(n ir.Node) bool {
    	return base.Flag.N == 0 && !base.Flag.Cfg.Instrumenting && n.Op() == ir.OLEN && n.(*ir.UnaryExpr).X.Op() == ir.OSTR2RUNES
    }
    
    // isByteCount reports whether n is of the form len(string([]byte)).
    func isByteCount(n ir.Node) bool {
    	return base.Flag.N == 0 && !base.Flag.Cfg.Instrumenting && n.Op() == ir.OLEN &&
    		(n.(*ir.UnaryExpr).X.Op() == ir.OBYTES2STR || n.(*ir.UnaryExpr).X.Op() == ir.OBYTES2STRTMP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top