- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 82 for typeOff (0.29 sec)
-
src/runtime/plugin.go
syms = make(map[string]any, len(md.ptab)) for _, ptab := range md.ptab { symName := resolveNameOff(unsafe.Pointer(md.types), ptab.name) t := toRType((*_type)(unsafe.Pointer(md.types))).typeOff(ptab.typ) // TODO can this stack of conversions be simpler? var val any valp := (*[2]unsafe.Pointer)(unsafe.Pointer(&val)) (*valp)[0] = unsafe.Pointer(t) name := symName.Name()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 4.4K bytes - Viewed (0) -
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) -
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) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-type-util.h.pump
struct Types0 {}; // Type lists of length 1, 2, 3, and so on. template <typename T1> struct Types1 { typedef T1 Head; typedef Types0 Tail; }; $range i 2..n $for i [[ $range j 1..i $range k 2..i template <$for j, [[typename T$j]]> struct Types$i { typedef T1 Head; typedef Types$(i-1)<$for k, [[T$k]]> Tail; }; ]] } // namespace internal
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/mock_test.go
if name == "nonExisting" { return nil, false } return m.TypeRef.Field(name) } func (m *mockTypeResolverForOptional) Resolve(name string) (common.TypeRef, bool) { r, ok := m.mockTypeResolver.Resolve(name) if ok { return &mockTypeRefForOptional{TypeRef: r}, ok } return nil, false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 2.9K bytes - Viewed (0) -
src/reflect/type_test.go
{"func(func(int, int))", reflect.TypeOf(func(func(int, int)) {}), false}, {"int64", reflect.TypeOf(int64(1)), false}, {"uint64", reflect.TypeOf(uint64(1)), false}, {"*[4]int", reflect.TypeOf(&[4]int{}), true}, {"chan int64", reflect.TypeOf(make(chan int64)), false}, {"map[int]int", reflect.TypeOf(make(map[int]int)), true}, {"string", reflect.TypeOf(""), true}, {"[]int", reflect.TypeOf([]int{}), true}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 4.2K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/schemaBuidler/TreatInterfaceAsConfigureLambdaTest.kt
@Test fun recognizesLambdaType() { assertEquals(typeOf<Int>(), customConfigureLambdas.getTypeConfiguredByLambda(typeOf<MyFunctionalInterface<Int>>())) assertTrue { customConfigureLambdas.isConfigureLambdaForType(typeOf<Int>(), typeOf<MyFunctionalInterface<Int>>()) } assertFalse { customConfigureLambdas.isConfigureLambdaForType(typeOf<String>(), typeOf<MyFunctionalInterface<Int>>()) } } @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 10:53:44 UTC 2024 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/common/interface.go
// This function returns false if the name does not refer to a known object type. Resolve(name string) (TypeRef, bool) } // TypeRef refers an object type that can be looked up for its fields. type TypeRef interface { ref.Type // CELType wraps the TypeRef to be a type that is understood by CEL. CELType() *types.Type // Field finds the field by the field name, or false if the field is not known.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeresolver.go
) const object = common.RootTypeReferenceName type TypeResolver struct { } // Resolve resolves the TypeRef for the given type name // that starts with "Object". // This is the unstructured version, which means the // returned TypeRef does not refer to the schema. func (r *TypeResolver) Resolve(name string) (common.TypeRef, bool) { if !strings.HasPrefix(name, object) { return nil, false } return NewTypeRef(name), true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 1.1K bytes - Viewed (0) -
src/runtime/cgo/libcgo.h
#include <stdio.h> #undef nil #define nil ((void*)0) #define nelem(x) (sizeof(x)/sizeof((x)[0])) typedef uint32_t uint32; typedef uint64_t uint64; typedef uintptr_t uintptr; /* * The beginning of the per-goroutine structure, * as defined in ../pkg/runtime/runtime.h. * Just enough to edit these two fields. */ typedef struct G G; struct G { uintptr stacklo; uintptr stackhi; }; /*
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 20:50:04 UTC 2024 - 3.5K bytes - Viewed (0)