Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 987 for typeOf (0.1 sec)

  1. src/cmd/compile/internal/types2/sizeof_test.go

    package types2
    
    import (
    	"reflect"
    	"testing"
    )
    
    // Signal size changes of important structures.
    
    func TestSizeof(t *testing.T) {
    	const _64bit = ^uint(0)>>32 != 0
    
    	var tests = []struct {
    		val    interface{} // type as a value
    		_32bit uintptr     // size on 32bit platforms
    		_64bit uintptr     // size on 64bit platforms
    	}{
    		// Types
    		{Basic{}, 16, 32},
    		{Array{}, 16, 24},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 06 13:09:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. pkg/config/analysis/local/helpers_test.go

    	Group:         "testdata.istio.io",
    	Kind:          "Kind1",
    	Plural:        "Kind1s",
    	Version:       "v1alpha1",
    	Proto:         "google.protobuf.Struct",
    	ReflectType:   reflect.TypeOf(&structpb.Struct{}).Elem(),
    	ProtoPackage:  "github.com/gogo/protobuf/types",
    	ClusterScoped: false,
    	ValidateProto: validation.EmptyValidate,
    }.MustBuild()
    
    func createTestResource(t *testing.T, ns, name, version string) *resource.Instance {
    	t.Helper()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/reflect/HasPublicType.java

     *
     * The public type of an object is the one exposed to statically-typed consumers, such as Kotlin build scripts, by default.
     *
     * @since 3.5
     */
    public interface HasPublicType {
    
        /**
         * Public type.
         *
         * @return this object's public type
         */
        TypeOf<?> getPublicType();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 11 20:41:53 UTC 2018
    - 1K bytes
    - Viewed (0)
  4. security/pkg/pki/util/crypto.go

    	default:
    		return nil, fmt.Errorf("unsupported PEM block type for a private key: %s", kb.Type)
    	}
    }
    
    // GetRSAKeySize returns the size if it is RSA key, otherwise it returns an error.
    func GetRSAKeySize(privKey crypto.PrivateKey) (int, error) {
    	if t := reflect.TypeOf(privKey); t != reflect.TypeOf(&rsa.PrivateKey{}) {
    		return 0, fmt.Errorf("key type is not RSA: %v", t)
    	}
    	pkey := privKey.(*rsa.PrivateKey)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 13:00:07 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/plugins/form-validator/location.js

     *
     *  @version 2.3.77
     *  @website http://formvalidator.net/
     *  @author Victor Jonsson, http://victorjonsson.se
     *  @license MIT
     */
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/FunctionExtractor.kt

                function.annotations.any { it is Adding } -> {
                    check(inType != null)
    
                    check(function.returnType != typeOf<Unit>() || configureLambdas.getTypeConfiguredByLambda(function.parameters.last().type) == null) {
                        "an @Adding function with a Unit return type may not accept configuring lambdas"
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. pkg/ctrlz/assets/static/js/popper-1.12.9.min.js

    /*
     Copyright (C) Federico Zivolo 2017
     Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  8. test/fixedbugs/issue30041.go

    	badPtr = uintptr(unsafe.Pointer(&b[len(b)-1])) + 1
    }
    
    type ft func() *int
    
    var fn ft
    
    func rf([]reflect.Value) []reflect.Value {
    	a := reflect.ValueOf((*int)(nil))
    	return []reflect.Value{a}
    }
    
    const N = 1000
    
    func main() {
    	fn = reflect.MakeFunc(reflect.TypeOf(fn), rf).Interface().(ft)
    
    	// Keep running GC so the write barrier is on.
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 01 19:23:02 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  9. pkg/typemap/map.go

    )
    
    // TypeMap provides a map that holds a map of Type -> Value. There can be only a single value per type.
    // The value stored for a type must be of the same type as the key.
    type TypeMap struct {
    	inner map[reflect.Type]any
    }
    
    func NewTypeMap() TypeMap {
    	return TypeMap{make(map[reflect.Type]any)}
    }
    
    func Set[T any](t TypeMap, v T) {
    	interfaceType := reflect.TypeOf((*T)(nil)).Elem()
    	t.inner[interfaceType] = v
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. test/typeparam/mdempsky/15.go

    func TestX[T any]() { Test[T, interface{ XBad() }, interface{ XGood() }]() }
    
    type E struct{}
    
    //go:nointerface
    func (E) EBad()  {}
    func (E) EGood() {}
    
    type X[T any] struct{ E }
    
    //go:nointerface
    func (X[T]) XBad()  {}
    func (X[T]) XGood() {}
    
    type W struct{ X[int] }
    
    func main() {
    	_ = E.EGood
    	_ = E.EBad
    
    	TestE[E]()
    
    	_ = X[int].EGood
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top