Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for StructType (0.48 sec)

  1. src/cmd/link/internal/ld/deadcode.go

    	if !decodetypeHasUncommon(arch, p) {
    		panic(fmt.Sprintf("no methods on %q", ldr.SymName(symIdx)))
    	}
    	off := commonsize(arch) // reflect.rtype
    	switch decodetypeKind(arch, p) {
    	case abi.Struct: // reflect.structType
    		off += 4 * arch.PtrSize
    	case abi.Pointer: // reflect.ptrType
    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/runtime/cgocall.go

    		}
    	case abi.String:
    		ss := (*stringStruct)(p)
    		if !cgoIsGoPointer(ss.str) {
    			return
    		}
    		if !top && !isPinned(ss.str) {
    			panic(errorString(msg))
    		}
    	case abi.Struct:
    		st := (*structtype)(unsafe.Pointer(t))
    		if !indir {
    			if len(st.Fields) != 1 {
    				throw("can't happen")
    			}
    			cgoCheckArg(st.Fields[0].Typ, p, st.Fields[0].Typ.Kind_&abi.KindDirectIface == 0, top, msg)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/autoscaling/v1/types.go

    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    )
    
    // CrossVersionObjectReference contains enough information to let you identify the referred resource.
    // +structType=atomic
    type CrossVersionObjectReference struct {
    	// kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. src/go/doc/reader.go

    	r.order++
    }
    
    // fields returns a struct's fields or an interface's methods.
    func fields(typ ast.Expr) (list []*ast.Field, isStruct bool) {
    	var fields *ast.FieldList
    	switch t := typ.(type) {
    	case *ast.StructType:
    		fields = t.Fields
    		isStruct = true
    	case *ast.InterfaceType:
    		fields = t.Methods
    	}
    	if fields != nil {
    		list = fields.List
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
Back to top