- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 3,055 for REFLECT (0.12 sec)
-
statement.go
} writer.WriteString(subdb.Statement.SQL.String()) stmt.Vars = subdb.Statement.Vars default: switch rv := reflect.ValueOf(v); rv.Kind() { case reflect.Slice, reflect.Array: if rv.Len() == 0 { writer.WriteString("(NULL)") } else if rv.Type().Elem() == reflect.TypeOf(uint8(0)) { stmt.Vars = append(stmt.Vars, v) stmt.DB.Dialector.BindVarTo(writer, stmt, v) } else {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Jan 12 08:42:21 UTC 2024 - 19.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/meta.go
t := elemPatchMetaFromStruct.T var elemType reflect.Type switch t.Kind() { // If t is an array or a slice, get the element type. // If element is still an array or a slice, return an error. // Otherwise, return element type. case reflect.Array, reflect.Slice: elemType = t.Elem() if elemType.Kind() == reflect.Array || elemType.Kind() == reflect.Slice {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 16:45:45 UTC 2023 - 7.7K bytes - Viewed (0) -
test/fixedbugs/issue27695b.go
runtime.GC() return nil } func main() { // Functions d := reflect.MakeFunc(reflect.TypeOf(func() *byte { return nil }), func(args []reflect.Value) []reflect.Value { runtime.GC() return []reflect.Value{reflect.ValueOf((*byte)(nil))} }).Interface().(func() *byte) f(d) // Methods e := reflect.ValueOf(&T{}).Method(0).Interface().(func() *byte) f(e)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 29 20:25:24 UTC 2018 - 1.3K bytes - Viewed (0) -
src/encoding/gob/type_test.go
newtyp := getTypeUnlocked("int", reflect.TypeFor[int]()) if newtyp != tInt.gobType() { t.Errorf("reregistration of %s got new type", newtyp.string()) } newtyp = getTypeUnlocked("uint", reflect.TypeFor[uint]()) if newtyp != tUint.gobType() { t.Errorf("reregistration of %s got new type", newtyp.string()) } newtyp = getTypeUnlocked("string", reflect.TypeFor[string]()) if newtyp != tString.gobType() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:26:13 UTC 2023 - 6.1K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/PropertyExtractor.kt
import java.util.Locale import kotlin.reflect.KClass import kotlin.reflect.KFunction import kotlin.reflect.KMutableProperty import kotlin.reflect.KProperty import kotlin.reflect.KType import kotlin.reflect.KVisibility import kotlin.reflect.full.instanceParameter import kotlin.reflect.full.memberFunctions import kotlin.reflect.full.memberProperties import kotlin.reflect.full.primaryConstructor
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:01 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/printers/tablegenerator.go
func (h *HumanReadableGenerator) GenerateTable(obj runtime.Object, options GenerateOptions) (*metav1.Table, error) { t := reflect.TypeOf(obj) handler, ok := h.handlerMap[t] if !ok { return nil, fmt.Errorf("no table handler registered for this type %v", t) } args := []reflect.Value{reflect.ValueOf(obj), reflect.ValueOf(options)} results := handler.printFunc.Call(args) if !results[1].IsNil() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 5.9K bytes - Viewed (0) -
tests/fuzz/crd_roundtrip_fuzzer.go
// This part only converts the interface to a reflect.Value. func checkForNilValues(targetStruct any) error { v := reflect.ValueOf(targetStruct) e := v.Elem() err := checkForNil(e) if err != nil { return err } return nil } // Checks for nil values in a reflect.Value. func checkForNil(e reflect.Value) error { switch e.Kind() { case reflect.Struct: for i := 0; i < e.NumField(); i++ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 5.8K bytes - Viewed (0) -
test/alias2.go
// Test basic restrictions on type aliases. package p import ( "reflect" . "reflect" ) type T0 struct{} // Valid type alias declarations. type _ = T0 type _ = int type _ = struct{} type _ = reflect.Value type _ = Value type ( A0 = T0 A1 = int A2 = struct{} A3 = reflect.Value A4 = Value A5 = Value N0 A0 )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:09:14 UTC 2024 - 2.5K bytes - Viewed (0) -
test/escape_unsafe.go
return unsafe.Pointer(reflect.ValueOf(p).Elem().UnsafeAddr()) } // (6) Conversion of a reflect.SliceHeader or reflect.StringHeader // Data field to or from Pointer. func fromSliceData(s []int) unsafe.Pointer { // ERROR "leaking param: s to result ~r0 level=0$" return unsafe.Pointer((*reflect.SliceHeader)(unsafe.Pointer(&s)).Data) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 17:25:59 UTC 2022 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/base-asm/src/main/java/org/gradle/model/internal/asm/AsmClassGeneratorUtils.java
*/ package org.gradle.model.internal.asm; import javax.annotation.Nonnull; import java.lang.reflect.Constructor; import java.lang.reflect.GenericArrayType; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; import java.lang.reflect.WildcardType; import static org.objectweb.asm.Type.getType; public class AsmClassGeneratorUtils {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 15:31:25 UTC 2024 - 7K bytes - Viewed (0)