Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for unsafeptr (0.14 sec)

  1. src/cmd/compile/internal/typecheck/mkbuiltin.go

    	case *ast.SelectorExpr:
    		if t.X.(*ast.Ident).Name != "unsafe" || t.Sel.Name != "Pointer" {
    			log.Fatalf("unhandled type: %#v", t)
    		}
    		return "types.Types[types.TUNSAFEPTR]"
    
    	case *ast.ArrayType:
    		if t.Len == nil {
    			return fmt.Sprintf("types.NewSlice(%s)", i.subtype(t.Elt))
    		}
    		return fmt.Sprintf("types.NewArray(%s, %d)", i.subtype(t.Elt), intconst(t.Len))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/coverage/cover.go

    	// Materalize expression corresponding to address of the meta-data symbol.
    	mdax := typecheck.NodAddr(cnames.MetaVar)
    	mdauspx := typecheck.ConvNop(mdax, types.Types[types.TUNSAFEPTR])
    
    	// Materialize expression for length.
    	lenx := ir.NewInt(base.Pos, int64(mdlen)) // untyped
    
    	// Generate a call to runtime.addCovMeta, e.g.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top