Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 550 for typeOff (0.13 sec)

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

    }
    
    // decodeMethodSig decodes an array of method signature information.
    // Each element of the array is size bytes. The first 4 bytes is a
    // nameOff for the method name, and the next 4 bytes is a typeOff for
    // the function type.
    //
    // Conveniently this is the layout of both runtime.method and runtime.imethod.
    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/cmd/link/internal/ld/symtab.go

    		if ldr.SymType(ptab) != sym.SRODATA {
    			panic(fmt.Sprintf("go:plugin.tabs is %v, not SRODATA", ldr.SymType(ptab)))
    		}
    		nentries := uint64(len(ldr.Data(ptab)) / 8) // sizeof(nameOff) + sizeof(typeOff)
    		slice(ptab, nentries)
    	} else {
    		nilSlice()
    	}
    
    	if ctxt.BuildMode == BuildModePlugin {
    		addgostring(ctxt, ldr, moduledata, "go:link.thispluginpath", objabi.PathToPrefix(*flagPluginPath))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/reflect/TypeOf.java

                @Override
                public TypeOf<?> apply(ModelType<?> it) {
                    return typeOf(it);
                }
            });
        }
    
        private static <U> TypeOf<U> typeOf(ModelType<U> componentType) {
            return new TypeOf<U>(componentType) {
            };
        }
    
        private TypeOf<?> nullableTypeOf(Class<?> type) {
            return type != null
                ? typeOf(type)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeref.go

    )
    
    // TypeRef is the implementation of TypeRef for an unstructured object.
    // This is especially usefully when the schema is not known or available.
    type TypeRef struct {
    	celObjectType *types.Type
    	celTypeType   *types.Type
    }
    
    func (r *TypeRef) HasTrait(trait int) bool {
    	return common.ObjectTraits|trait != 0
    }
    
    // TypeName returns the name of this TypeRef.
    func (r *TypeRef) TypeName() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package inspector
    
    // This file defines func typeOf(ast.Node) uint64.
    //
    // The initial map-based implementation was too slow;
    // see https://go-review.googlesource.com/c/tools/+/135655/1/go/ast/inspector/inspector.go#196
    
    import (
    	"go/ast"
    	"math"
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val.go

    // construction syntax.
    type ObjectVal struct {
    	typeRef TypeRef
    	fields  map[string]ref.Val
    }
    
    // NewObjectVal creates an ObjectVal by its TypeRef and its fields.
    func NewObjectVal(typeRef TypeRef, fields map[string]ref.Val) *ObjectVal {
    	return &ObjectVal{
    		typeRef: typeRef,
    		fields:  fields,
    	}
    }
    
    var _ ref.Val = (*ObjectVal)(nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 21:55:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. src/reflect/value.go

    			panic("reflect: " + op + " of method on nil interface value")
    		}
    		rcvrtype = iface.itab.Type
    		fn = unsafe.Pointer(&unsafe.Slice(&iface.itab.Fun[0], i+1)[i])
    		t = (*funcType)(unsafe.Pointer(tt.typeOff(m.Typ)))
    	} else {
    		rcvrtype = v.typ()
    		ms := v.typ().ExportedMethods()
    		if uint(i) >= uint(len(ms)) {
    			panic("reflect: internal error: invalid method index")
    		}
    		m := ms[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/typeconverter_test.go

    	gvkIndex := indexModels(&parser, myDefs)
    
    	require.Len(t, gvkIndex, 5)
    
    	resultNames := map[schema.GroupVersionKind]string{}
    	for k, v := range gvkIndex {
    		require.NotNil(t, v.TypeRef.NamedType)
    		resultNames[k] = *v.TypeRef.NamedType
    	}
    
    	require.Equal(t, resultNames, map[schema.GroupVersionKind]string{
    		{
    			Group:   "mygroup",
    			Version: "v1",
    			Kind:    "MyKind",
    		}: "def1",
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. src/debug/dwarf/type.go

    			}
    			t.ParamType = append(t.ParamType, tkid)
    		}
    
    	case TagTypedef:
    		// Typedef (DWARF v2 §5.3)
    		// Attributes:
    		//	AttrName: name [required]
    		//	AttrType: type definition [required]
    		t := new(TypedefType)
    		typ = t
    		typeCache[off] = t
    		t.Name, _ = e.Val(AttrName).(string)
    		t.Type = typeOf(e)
    
    	case TagUnspecifiedType:
    		// Unspecified type (DWARF v3 §5.2)
    		// Attributes:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  10. src/cmd/fix/cftype_test.go

    		In: `package main
    
    // typedef const void *CFTypeRef;
    import "C"
    
    var x C.CFTypeRef = nil
    
    func f() {
    	x = nil
    }
    `,
    		Out: `package main
    
    // typedef const void *CFTypeRef;
    import "C"
    
    var x C.CFTypeRef = 0
    
    func f() {
    	x = 0
    }
    `,
    	},
    	{
    		Name: "cftype.EqualArgument",
    		In: `package main
    
    // typedef const void *CFTypeRef;
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 3.2K bytes
    - Viewed (0)
Back to top