Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for ptrTo (0.06 sec)

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

    		}
    		tmp := o.newTemp(kt, true)
    		// *(*nt)(&tmp) = n
    		var e ir.Node = typecheck.NodAddr(tmp)
    		e = ir.NewConvExpr(pos, ir.OCONVNOP, nt.PtrTo(), e)
    		e = ir.NewStarExpr(pos, e)
    		o.append(ir.NewAssignStmt(pos, e, n))
    		return tmp
    	}
    }
    
    // mapKeyReplaceStrConv replaces OBYTES2STR by OBYTES2STRTMP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/type.go

    		TUINT32, TINT64, TUINT64, TINT, TUINT,
    		TUINTPTR, TCOMPLEX64, TCOMPLEX128, TFLOAT32, TFLOAT64:
    		return true
    	}
    	return false
    }
    
    func (t *Type) PtrTo() *Type {
    	return NewPtr(t)
    }
    
    func (t *Type) NumFields() int {
    	if t.kind == TRESULTS {
    		return len(t.extra.(*Results).Types)
    	}
    	return len(t.Fields())
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    	check("ArrayOf", ArrayOf(10, TypeOf(T{})))
    	check("ChanOf", ChanOf(BothDir, TypeOf(T{})))
    	check("FuncOf", FuncOf([]Type{TypeOf(T{})}, nil, false))
    	check("MapOf", MapOf(TypeOf(T{}), TypeOf(T{})))
    	check("PtrTo", PointerTo(TypeOf(T{})))
    	check("SliceOf", SliceOf(TypeOf(T{})))
    }
    
    type XM struct{ _ bool }
    
    func (*XM) String() string { return "" }
    
    func TestPtrToMethods(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. src/fmt/fmt_test.go

    		if i >= 0 && i < len(s) {
    			var pattern, chars string
    			switch {
    			case strings.HasPrefix(tt.out[i:], "PTR_b"):
    				pattern = "PTR_b"
    				chars = "01"
    			case strings.HasPrefix(tt.out[i:], "PTR_o"):
    				pattern = "PTR_o"
    				chars = "01234567"
    			case strings.HasPrefix(tt.out[i:], "PTR_d"):
    				pattern = "PTR_d"
    				chars = "0123456789"
    			case strings.HasPrefix(tt.out[i:], "PTR_x"):
    				pattern = "PTR_x"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Method.PkgPath", Field, 0},
    		{"Method.Type", Field, 0},
    		{"New", Func, 0},
    		{"NewAt", Func, 0},
    		{"Pointer", Const, 18},
    		{"PointerTo", Func, 18},
    		{"Ptr", Const, 0},
    		{"PtrTo", Func, 0},
    		{"RecvDir", Const, 0},
    		{"Select", Func, 1},
    		{"SelectCase", Type, 1},
    		{"SelectCase.Chan", Field, 1},
    		{"SelectCase.Dir", Field, 1},
    		{"SelectCase.Send", Field, 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. api/go1.txt

    pkg reflect, func MakeMap(Type) Value
    pkg reflect, func MakeSlice(Type, int, int) Value
    pkg reflect, func New(Type) Value
    pkg reflect, func NewAt(Type, unsafe.Pointer) Value
    pkg reflect, func PtrTo(Type) Type
    pkg reflect, func TypeOf(interface{}) Type
    pkg reflect, func ValueOf(interface{}) Value
    pkg reflect, func Zero(Type) Value
    pkg reflect, method (*ValueError) Error() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top