Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for CommonType (0.43 sec)

  1. src/encoding/gob/debug.go

    		} else {
    			deb.value(indent, id)
    			break
    		}
    	}
    	return true
    }
    
    // Helper methods to make it easy to scan a type descriptor.
    
    // common returns the CommonType at the input point.
    func (deb *debugger) common() CommonType {
    	fieldNum := -1
    	name := ""
    	id := typeId(0)
    	for {
    		delta := deb.delta(-1)
    		if delta == 0 {
    			break
    		}
    		fieldNum += delta
    		switch fieldNum {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  2. src/encoding/gob/type.go

    	}
    	return t.gobType().name()
    }
    
    // CommonType holds elements of all types.
    // It is a historical artifact, kept for binary compatibility and exported
    // only for the benefit of the package's encoding of type descriptors. It is
    // not intended for direct use by clients.
    type CommonType struct {
    	Name string
    	Id   typeId
    }
    
    func (t *CommonType) id() typeId { return t.Id }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  3. src/debug/dwarf/type.go

    }
    
    func (c *CommonType) Common() *CommonType { return c }
    
    func (c *CommonType) Size() int64 { return c.ByteSize }
    
    // Basic types
    
    // A BasicType holds fields common to all basic types.
    //
    // See the documentation for [StructField] for more info on the interpretation of
    // the BitSize/BitOffset/DataBitOffset fields.
    type BasicType struct {
    	CommonType
    	BitSize       int64
    	BitOffset     int64
    	DataBitOffset int64
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  4. src/encoding/gob/doc.go

    	}
    	type arrayType struct {
    		CommonType
    		Elem typeId
    		Len  int
    	}
    	type CommonType struct {
    		Name string // the name of the struct type
    		Id  int    // the id of the type, repeated so it's inside the type
    	}
    	type sliceType struct {
    		CommonType
    		Elem typeId
    	}
    	type structType struct {
    		CommonType
    		Field []*fieldType // the fields of the struct.
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/decodesym.go

    // Type.commonType.kind
    func decodetypeKind(arch *sys.Arch, p []byte) abi.Kind {
    	return abi.Kind(p[2*arch.PtrSize+7]) & abi.KindMask //  0x13 / 0x1f
    }
    
    // Type.commonType.kind
    func decodetypeUsegcprog(arch *sys.Arch, p []byte) bool {
    	return abi.Kind(p[2*arch.PtrSize+7])&abi.KindGCProg != 0 //  0x13 / 0x1f
    }
    
    // Type.commonType.size
    func decodetypeSize(arch *sys.Arch, p []byte) int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/importer_test.go

    	{pkgpath: "nointerface", name: "I", want: "type I int"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/testdata/v1reflect.gox

    import unsafe unsafe "unsafe";
    init reflect reflect..import 3 math math..import 1 runtime runtime..import 1 strconv strconv..import 2;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  8. src/go/printer/testdata/declarations.input

    type _ struct {
    	String struct {
    		Str, Len int
    	}
    	Slice struct {
    		Array, Len, Cap int
    	}
    	Eface struct {
    		Typ, Ptr int
    	}
    
    	UncommonType struct {
    		Name, PkgPath int
    	}
    	CommonType struct {
    		Size, Hash, Alg, Align, FieldAlign, String, UncommonType int
    	}
    	Type struct {
    		Typ, Ptr int
    	}
    	StructField struct {
    		Name, PkgPath, Typ, Tag, Offset int
    	}
    	StructType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  9. src/runtime/runtime-gdb.py

    #rsc: "to find the number of entries in the itab's Fn field look at
    # itab.inter->numMethods
    # i am sure i have the names wrong but look at the interface type
    # and its method count"
    # so Itype will start with a commontype which has kind = interface
    
    #
    # Register all convenience functions and CLI commands
    #
    GoLenFunc()
    GoCapFunc()
    DTypeFunc()
    GoroutinesCmd()
    GoroutineCmd()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"ClassRngListsPtr", Const, 14},
    		{"ClassStrOffsetsPtr", Const, 14},
    		{"ClassString", Const, 5},
    		{"ClassStringAlt", Const, 5},
    		{"ClassUnknown", Const, 6},
    		{"CommonType", Type, 0},
    		{"CommonType.ByteSize", Field, 0},
    		{"CommonType.Name", Field, 0},
    		{"ComplexType", Type, 0},
    		{"ComplexType.BasicType", Field, 0},
    		{"Data", Type, 0},
    		{"DecodeError", Type, 0},
    		{"DecodeError.Err", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top