Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for structfield2 (0.17 sec)

  1. src/cmd/cgo/internal/testerrors/ptr_test.go

    	},
    	{
    		// Test that converting multiple struct field
    		// addresses to unsafe.Pointer still just checks those
    		// fields. Issue #25941.
    		name:    "structfield2",
    		c:       `void f34(void* p, int r, void* s) {}`,
    		imports: []string{"unsafe"},
    		support: `type S34 struct { a [8]byte; p *int; b int64; }`,
    		body:    `s := &S34{p: new(int)}; C.f34(unsafe.Pointer(&s.a), 32, unsafe.Pointer(&s.b))`,
    		fail:    false,
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. schema/relationship.go

    		ownFieldsMap[joinFieldName] = ownField
    		fieldsMap[joinFieldName] = ownField
    		joinTableFields = append(joinTableFields, reflect.StructField{
    			Name:    joinFieldName,
    			PkgPath: ownField.StructField.PkgPath,
    			Type:    ownField.StructField.Type,
    			Tag: removeSettingFromTag(appendSettingFromTag(ownField.StructField.Tag, "primaryKey"),
    				"column", "autoincrement", "index", "unique", "uniqueindex"),
    		})
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. src/reflect/badlinkname.go

    //go:linkname badlinkname_rtype_Field reflect.(*rtype).Field
    func badlinkname_rtype_Field(*rtype, int) StructField
    
    //go:linkname badlinkname_rtype_FieldAlign reflect.(*rtype).FieldAlign
    func badlinkname_rtype_FieldAlign(*rtype) int
    
    //go:linkname badlinkname_rtype_FieldByIndex reflect.(*rtype).FieldByIndex
    func badlinkname_rtype_FieldByIndex(*rtype, []int) StructField
    
    //go:linkname badlinkname_rtype_FieldByName reflect.(*rtype).FieldByName
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. schema/field.go

    				}
    				// index is negative means is pointer
    				if field.FieldType.Kind() == reflect.Struct {
    					ef.StructField.Index = append([]int{fieldStruct.Index[0]}, ef.StructField.Index...)
    				} else {
    					ef.StructField.Index = append([]int{-fieldStruct.Index[0] - 1}, ef.StructField.Index...)
    				}
    
    				if prefix, ok := field.TagSettings["EMBEDDEDPREFIX"]; ok && ef.DBName != "" {
    					ef.DBName = prefix + ef.DBName
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. src/go/internal/gccgoimporter/importer_test.go

    	{pkgpath: "v1reflect", name: "Type", want: "type Type interface{Align() int; AssignableTo(u Type) bool; Bits() int; ChanDir() ChanDir; Elem() Type; Field(i int) StructField; FieldAlign() int; FieldByIndex(index []int) StructField; FieldByName(name string) (StructField, bool); FieldByNameFunc(match func(string) bool) (StructField, bool); Implements(u Type) bool; In(i int) Type; IsVariadic() bool; Key() Type; Kind() Kind; Len() int; Method(int) Method; MethodByName(string) (Method, bool); Name()...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top