- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for toRType (0.38 sec)
-
src/runtime/error.go
func (e *TypeAssertionError) Error() string { inter := "interface" if e._interface != nil { inter = toRType(e._interface).string() } as := toRType(e.asserted).string() if e.concrete == nil { return "interface conversion: " + inter + " is nil, not " + as } cs := toRType(e.concrete).string() if e.missingMethod == "" { msg := "interface conversion: " + inter + " is " + cs + ", not " + as if cs == as {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 9.9K bytes - Viewed (0) -
src/runtime/alg.go
// typehash, but we want to report the topmost type in // the error text (e.g. in a struct with a field of slice type // we want to report the struct, not the slice). panic(errorString("hash of unhashable type " + toRType(t).string())) } if isDirectIface(t) { return c1 * typehash(t, unsafe.Pointer(&a.data), h^c0) } else { return c1 * typehash(t, a.data, h^c0) } } // nilinterhash should be an internal detail,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 13.6K bytes - Viewed (0) -
src/internal/reflectlite/type.go
sqBrackets-- } i-- } return s[i+1:] } func toRType(t *abi.Type) rtype { return rtype{t} } func elem(t *abi.Type) *abi.Type { et := t.Elem() if et != nil { return et } panic("reflect: Elem of invalid type " + toRType(t).String()) } func (t rtype) Elem() Type { return toType(elem(t.common())) } func (t rtype) In(i int) Type {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/runtime/mfinal.go
throw("runtime.SetFinalizer: second argument is " + toRType(ftyp).string() + ", not a function") } ft := (*functype)(unsafe.Pointer(ftyp)) if ft.IsVariadic() { throw("runtime.SetFinalizer: cannot pass " + toRType(etyp).string() + " to finalizer " + toRType(ftyp).string() + " because dotdotdot") } if ft.InCount != 1 { throw("runtime.SetFinalizer: cannot pass " + toRType(etyp).string() + " to finalizer " + toRType(ftyp).string()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 01:56:56 UTC 2024 - 19K bytes - Viewed (0) -
src/runtime/type.go
// different modules seen[tp] = struct{}{} if t == v { return true } kind := t.Kind_ & abi.KindMask if kind != v.Kind_&abi.KindMask { return false } rt, rv := toRType(t), toRType(v) if rt.string() != rv.string() { return false } ut := t.Uncommon() uv := v.Uncommon() if ut != nil || uv != nil { if ut == nil || uv == nil { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 12.7K bytes - Viewed (0) -
src/internal/reflectlite/value.go
} else { ifaceE2I(dst, x, target) } return Value{dst, target, flagIndir | flag(abi.Interface)} } // Failed. panic(context + ": value of type " + toRType(v.typ()).String() + " is not assignable to type " + toRType(dst).String()) } // arrayAt returns the i-th element of p, // an array whose elements are eltSize bytes wide. // The array pointed at by p must have at least i+1 elements:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 13.6K bytes - Viewed (0) -
src/runtime/runtime1.go
// See go.dev/issue/67401. // //go:linkname reflect_resolveTypeOff reflect.resolveTypeOff func reflect_resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { return unsafe.Pointer(toRType((*_type)(rtype)).typeOff(typeOff(off))) } // reflect_resolveTextOff resolves a function pointer offset from a base type. // // reflect_resolveTextOff is for package reflect,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 19.3K bytes - Viewed (0) -
src/runtime/iface.go
imethods: for k := 0; k < ni; k++ { i := &inter.Methods[k] itype := toRType(&inter.Type).typeOff(i.Typ) name := toRType(&inter.Type).nameOff(i.Name) iname := name.Name() ipkg := pkgPath(name) if ipkg == "" { ipkg = inter.PkgPath.Name() } for ; j < nt; j++ { t := &xmhdr[j] rtyp := toRType(typ) tname := rtyp.nameOff(t.Name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 22.5K bytes - Viewed (0) -
src/runtime/pinner.go
panic(errorString("runtime.Pinner: argument is nil")) } if kind := etyp.Kind_ & abi.KindMask; kind != abi.Pointer && kind != abi.UnsafePointer { panic(errorString("runtime.Pinner: argument is not a pointer: " + toRType(etyp).string())) } if inUserArenaChunk(uintptr(e.data)) { // Arena-allocated objects are not eligible for pinning. panic(errorString("runtime.Pinner: object was allocated into an arena")) } return e.data
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 11K bytes - Viewed (0) -
src/runtime/syscall_windows.go
return false } } return true } // Pointer-sized types such as maps and channels are currently // not supported. panic("compileCallback: type " + toRType(t).string() + " is currently not supported for use in system callbacks") } // assignReg attempts to assign a single register for an // argument with the given size, at the given offset into the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 16.6K bytes - Viewed (0)