- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 46 for structfield2 (0.17 sec)
-
src/cmd/link/internal/ld/testdata/deadcode/structof_funcof.go
import "reflect" type S int func (s S) M() { println("S.M") } func (s S) N() { println("S.N") } type T float64 func (t T) F(s S) {} func useStructOf() { t := reflect.StructOf([]reflect.StructField{ { Name: "X", Type: reflect.TypeOf(int(0)), }, }) println(t.Name()) } func useFuncOf() { t := reflect.FuncOf( []reflect.Type{reflect.TypeOf(int(0))},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:07:26 UTC 2023 - 994 bytes - Viewed (0) -
src/reflect/type.go
panic("reflect: StructOf does not support methods of embedded interfaces") } // runtimeStructField takes a StructField value passed to StructOf and // returns both the corresponding internal representation, of type // structField, and the pkgpath value to use for this field. func runtimeStructField(field StructField) (structField, string) { if field.Anonymous && field.PkgPath != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/internal/abi/compiletype.go
// CommonSize returns sizeof(Type) for a compilation target with a given ptrSize func CommonSize(ptrSize int) int { return 4*ptrSize + 8 + 8 } // StructFieldSize returns sizeof(StructField) for a compilation target with a given ptrSize func StructFieldSize(ptrSize int) int { return 3 * ptrSize } // UncommonSize returns sizeof(UncommonType). This currently does not depend on ptrSize.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 03:01:24 UTC 2024 - 1.3K bytes - Viewed (0) -
src/reflect/all_test.go
{ field: StructField{Name: "s2", Type: TypeOf(int(0)), PkgPath: "other/pkg"}, }, { field: StructField{Name: "s2", Type: TypeOf(int(0)), PkgPath: "other/pkg"}, }, { field: StructField{Name: "S", Type: TypeOf(S1{})}, exported: true, }, { field: StructField{Name: "S", Type: TypeOf((*S1)(nil))}, exported: true, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
src/debug/dwarf/type.go
type StructType struct { CommonType StructName string Kind string // "struct", "union", or "class". Field []*StructField Incomplete bool // if true, struct, union, class is declared but not defined } // A StructField represents a field in a struct, union, or C++ class type. // // # Bit Fields // // The BitSize, BitOffset, and DataBitOffset fields describe the bit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 21.9K bytes - Viewed (0) -
src/cmd/fix/cftype_test.go
var y = x == nil var z = x != nil `, Out: `package main // typedef const void *CFTypeRef; import "C" var x C.CFTypeRef var y = x == 0 var z = x != 0 `, }, { Name: "cftype.StructField", In: `package main // typedef const void *CFTypeRef; import "C" type T struct { x C.CFTypeRef } var t = T{x: nil} `, Out: `package main // typedef const void *CFTypeRef;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 3.2K bytes - Viewed (0) -
src/encoding/json/encode.go
} var fieldCache sync.Map // map[reflect.Type]structFields // cachedTypeFields is like typeFields but uses a cache to avoid repeated work. func cachedTypeFields(t reflect.Type) structFields { if f, ok := fieldCache.Load(t); ok { return f.(structFields) } f, _ := fieldCache.LoadOrStore(t, typeFields(t)) return f.(structFields) } func mayAppendQuote(b []byte, quoted bool) []byte {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 36.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter.go
FromUnstructured(u map[string]interface{}, obj interface{}) error } type structField struct { structType reflect.Type field int } type fieldInfo struct { name string nameValue reflect.Value omitempty bool } type fieldsCacheMap map[structField]*fieldInfo type fieldsCache struct { sync.Mutex value atomic.Value }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 24.9K bytes - Viewed (0) -
tensorflow/cc/framework/cc_op_gen_util.cc
field_initiliazer = PrintAttrValue(graph_op_def.name(), api_def_attr.default_value()); } strings::StrAppend(&struct_fields, " ", attr_type_name, " ", api_def_attr.rename_to(), "_ = ", field_initiliazer, ";\n"); } if (struct_fields.empty()) { return ""; } string attrs_comment =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 00:57:05 UTC 2024 - 25K bytes - Viewed (0) -
src/cmd/fix/jnitype_test.go
var y = x == nil var z = x != nil `, Out: `package main // typedef struct _jobject* jobject; import "C" var x C.jobject var y = x == 0 var z = x != 0 `, }, { Name: "jni.StructField", In: `package main // typedef struct _jobject* jobject; import "C" type T struct { x C.jobject } var t = T{x: nil} `, Out: `package main // typedef struct _jobject* jobject;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 2.6K bytes - Viewed (0)