- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,740 for REFLECT (0.31 sec)
-
test/fixedbugs/issue15329.go
package main import ( "fmt" "reflect" "runtime" "unsafe" ) func main() { // Test all the different ways we can invoke reflect.Value.Pointer. // Direct method invocation. check(unsafe.Pointer(testMeth(1).Pointer()), unsafe.Pointer(testMeth(2).Pointer())) // Invocation via method expression. check(unsafe.Pointer(reflect.Value.Pointer(testMeth(1))), unsafe.Pointer(reflect.Value.Pointer(testMeth(2))))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 18 14:01:22 UTC 2016 - 2.1K bytes - Viewed (0) -
callbacks/helper_test.go
} if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); !loaded { t.Fatalf("loaded should be true") } // t1 already exist but t2 not if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t1, &t2, &t3})); loaded { t.Fatalf("loaded should be false") } if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t2, &t3})); !loaded { t.Fatalf("loaded should be true") } }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 05 02:22:57 UTC 2024 - 3.4K bytes - Viewed (0) -
test/typeparam/issue48185b.dir/a.go
// license that can be found in the LICENSE file. package a import ( "reflect" "sync" ) type addressableValue struct{ reflect.Value } type arshalers[Options, Coder any] struct { fncVals []typedArshaler[Options, Coder] fncCache sync.Map // map[reflect.Type]unmarshaler } type typedArshaler[Options, Coder any] struct { typ reflect.Type fnc func(Options, *Coder, addressableValue) error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 07 20:37:05 UTC 2021 - 1K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/ConfigureLambdaHandler.kt
import java.lang.reflect.Proxy import kotlin.reflect.KClass import kotlin.reflect.KType import kotlin.reflect.KTypeProjection import kotlin.reflect.KVariance import kotlin.reflect.full.createType import kotlin.reflect.full.declaredMemberFunctions import kotlin.reflect.full.instanceParameter import kotlin.reflect.full.isSubtypeOf import kotlin.reflect.typeOf interface ConfigureLambdaHandler {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 10:53:44 UTC 2024 - 6K bytes - Viewed (0) -
src/crypto/x509/pkcs8_test.go
tests := []struct { name string keyHex string keyType reflect.Type curve elliptic.Curve }{ { name: "RSA private key", keyHex: pkcs8RSAPrivateKeyHex, keyType: reflect.TypeOf(&rsa.PrivateKey{}), }, { name: "P-224 private key", keyHex: pkcs8P224PrivateKeyHex, keyType: reflect.TypeOf(&ecdsa.PrivateKey{}), curve: elliptic.P224(), }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 19 16:45:10 UTC 2022 - 9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/json.go
// we use reflect.Indirect here in order to obtain the actual value from a pointer. // we need an actual value in order to retrieve the package path for an object. // using reflect.Indirect indiscriminately is valid here, as all runtime.Objects are supposed to be pointers. if InternalObjectPreventer.IsForbidden(reflect.Indirect(reflect.ValueOf(obj)).Type().PkgPath()) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 10 11:23:25 UTC 2021 - 2.3K bytes - Viewed (0) -
utils/utils.go
} } return false } func AssertEqual(x, y interface{}) bool { if reflect.DeepEqual(x, y) { return true } if x == nil || y == nil { return false } xval := reflect.ValueOf(x) yval := reflect.ValueOf(y) if xval.Kind() == reflect.Ptr && xval.IsNil() || yval.Kind() == reflect.Ptr && yval.IsNil() { return false } if valuer, ok := x.(driver.Valuer); ok {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Apr 22 06:43:02 UTC 2024 - 3.8K bytes - Viewed (0) -
test/fixedbugs/issue48357.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 13 18:38:15 UTC 2021 - 360 bytes - Viewed (0) -
src/cmd/go/internal/generate/generate_test.go
for _, test := range splitTests { // First with newlines. got := g.split("//go:generate " + test.in + "\n") if !reflect.DeepEqual(got, test.out) { t.Errorf("split(%q): got %q expected %q", test.in, got, test.out) } // Then with CRLFs, thank you Windows. got = g.split("//go:generate " + test.in + "\r\n") if !reflect.DeepEqual(got, test.out) { t.Errorf("split(%q): got %q expected %q", test.in, got, test.out) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 20 14:09:12 UTC 2022 - 7.4K bytes - Viewed (0) -
src/internal/unsafeheader/unsafeheader_test.go
import ( "bytes" "internal/unsafeheader" "reflect" "testing" "unsafe" ) // TestTypeMatchesReflectType ensures that the name and layout of the // unsafeheader types matches the corresponding Header types in the reflect // package. func TestTypeMatchesReflectType(t *testing.T) { t.Run("Slice", func(t *testing.T) { testHeaderMatchesReflect(t, unsafeheader.Slice{}, reflect.SliceHeader{}) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.9K bytes - Viewed (0)