- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,310 for reflect1 (0.31 sec)
-
test/reflectmethod2.go
// assigned to interfaces, but only if reflect.Type.MethodByName is // never used. Test it here. package main import reflect1 "reflect" var called = false type M int func (m M) UniqueMethodName() { called = true } var v M type MyType interface { MethodByName(string) (reflect1.Method, bool) } func main() { var t MyType = reflect1.TypeOf(v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 21:19:20 UTC 2016 - 719 bytes - Viewed (0) -
operator/pkg/util/reflect.go
vv := reflect.ValueOf(v) return vv.Kind() == reflect.Ptr && vv.Elem().Kind() == reflect.Interface && vv.Elem().Elem().Kind() == reflect.Slice } // IsTypeStructPtr reports whether v is a struct ptr type. func IsTypeStructPtr(t reflect.Type) bool { if t == reflect.TypeOf(nil) { return false } return t.Kind() == reflect.Ptr && t.Elem().Kind() == reflect.Struct }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 8.6K bytes - Viewed (0) -
okcurl/src/main/resources/META-INF/native-image/okhttp3/okcurl/reflect-config.json
Jesse Wilson <******@****.***> 1703114827 -0500
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 4 bytes - Viewed (0) -
okhttp/src/main/resources/META-INF/native-image/okhttp/okhttp/reflect-config.json
Jesse Wilson <******@****.***> 1703114827 -0500
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 438 bytes - Viewed (0) -
schema/field.go
} } if field.Size == 0 { switch reflect.Indirect(fieldValue).Kind() { case reflect.Int, reflect.Int64, reflect.Uint, reflect.Uint64, reflect.Float64: field.Size = 64 case reflect.Int8, reflect.Uint8: field.Size = 8 case reflect.Int16, reflect.Uint16: field.Size = 16 case reflect.Int32, reflect.Uint32, reflect.Float32: field.Size = 32 } } // setup permission
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Apr 15 03:20:20 UTC 2024 - 32K bytes - Viewed (0) -
test/fixedbugs/issue19168.go
package p import ( "reflect" "unsafe" reflect2 "reflect" ) func sink(e interface{}) func a(hdr *reflect.SliceHeader, p *byte) { hdr.Data = uintptr(unsafe.Pointer(p)) // ERROR "write barrier" } func b(hdr *reflect.StringHeader, p *byte) { hdr.Data = uintptr(unsafe.Pointer(p)) // ERROR "write barrier" } func c(hdrs *[1]reflect.SliceHeader, p *byte) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 02 17:21:50 UTC 2017 - 1.3K bytes - Viewed (0) -
src/reflect/makefunc.go
// semantically equivalent to the input as far as the user of package // reflect can tell, but the true func representation can be handled // by code like Convert and Interface and Assign. func makeMethodValue(op string, v Value) Value { if v.flag&flagMethod == 0 { panic("reflect: internal error: invalid use of makeMethodValue") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:20:05 UTC 2024 - 5.9K bytes - Viewed (0) -
src/encoding/asn1/common.go
return false, TagInteger, false, true } switch t.Kind() { case reflect.Bool: return false, TagBoolean, false, true case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: return false, TagInteger, false, true case reflect.Struct: return false, TagSequence, true, true case reflect.Slice: if t.Elem().Kind() == reflect.Uint8 { return false, TagOctetString, false, true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 5.5K bytes - Viewed (0) -
test/interface/fake.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test interface comparisons using types hidden // inside reflected-on structs. package main import "reflect" type T struct { F float32 G float32 S string T string U uint32 V uint32 W uint32 X uint32 Y uint32 Z uint32 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:33:41 UTC 2012 - 1.8K bytes - Viewed (0) -
src/runtime/stkframe.go
f := frame.fn if f.args != abi.ArgsSizeUnknown { argMap.n = f.args / goarch.PtrSize return } // Extract argument bitmaps for reflect stubs from the calls they made to reflect. switch funcname(f) { case "reflect.makeFuncStub", "reflect.methodValueCall": // These take a *reflect.methodValue as their // context register and immediately save it to 0(SP). // Get the methodValue from 0(SP).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 9.9K bytes - Viewed (0)