Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for Dtype (0.04 sec)

  1. src/cmd/cgo/gcc.go

    func (p *Package) recordTypedefs(dtype dwarf.Type, pos token.Pos) {
    	p.recordTypedefs1(dtype, pos, map[dwarf.Type]bool{})
    }
    
    func (p *Package) recordTypedefs1(dtype dwarf.Type, pos token.Pos, visited map[dwarf.Type]bool) {
    	if dtype == nil {
    		return
    	}
    	if visited[dtype] {
    		return
    	}
    	visited[dtype] = true
    	switch dt := dtype.(type) {
    	case *dwarf.TypedefType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. src/runtime/type.go

    // license that can be found in the LICENSE file.
    
    // Runtime type representation.
    
    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    type nameOff = abi.NameOff
    type typeOff = abi.TypeOff
    type textOff = abi.TextOff
    
    type _type = abi.Type
    
    // rtype is a wrapper that allows us to define additional methods.
    type rtype struct {
    	*abi.Type // embedding is okay here (unlike reflect) because none of this is public
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. src/encoding/gob/type.go

    )
    
    // userTypeInfo stores the information associated with a type the user has handed
    // to the package. It's computed once and stored in a map keyed by reflection
    // type.
    type userTypeInfo struct {
    	user        reflect.Type // the type the user handed us
    	base        reflect.Type // the base type after all indirections
    	indir       int          // number of indirections to reach the base type
    	externalEnc int          // xGob, xBinary, or xText
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. src/sync/atomic/type.go

    var _ = &Pointer[int]{}
    
    // A Pointer is an atomic pointer of type *T. The zero value is a nil *T.
    type Pointer[T any] struct {
    	// Mention *T in a field to disallow conversion between Pointer types.
    	// See go.dev/issue/56603 for more details.
    	// Use *T, not T, to avoid spurious recursive type definition errors.
    	_ [0]*T
    
    	_ noCopy
    	v unsafe.Pointer
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/out.go

    func (p *Package) writeDefsFunc(fgo2 io.Writer, n *Name, callsMalloc *bool) {
    	name := n.Go
    	gtype := n.FuncType.Go
    	void := gtype.Results == nil || len(gtype.Results.List) == 0
    	if n.AddError {
    		// Add "error" to return type list.
    		// Type list is known to be 0 or 1 element - it's a C function.
    		err := &ast.Field{Type: ast.NewIdent("error")}
    		l := gtype.Results.List
    		if len(l) == 0 {
    			l = []*ast.Field{err}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/type.go

    package syntax
    
    import "go/constant"
    
    // A Type represents a type of Go.
    // All types implement the Type interface.
    // (This type originally lived in types2. We moved it here
    // so we could depend on it from other packages without
    // introducing an import cycle.)
    type Type interface {
    	// Underlying returns the underlying type of a type.
    	// Underlying types are never Named, TypeParam, or Alias types.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/internal/reflectlite/type.go

    	return s[i+1:]
    }
    
    func toRType(t *abi.Type) rtype {
    	return rtype{t}
    }
    
    func elem(t *abi.Type) *abi.Type {
    	et := t.Elem()
    	if et != nil {
    		return et
    	}
    	panic("reflect: Elem of invalid type " + toRType(t).String())
    }
    
    func (t rtype) Elem() Type {
    	return toType(elem(t.common()))
    }
    
    func (t rtype) In(i int) Type {
    	tt := t.Type.FuncType()
    	if tt == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/type.go

    }
    
    // Map contains Type fields specific to maps.
    type Map struct {
    	Key  *Type // Key type
    	Elem *Type // Val (elem) type
    
    	Bucket *Type // internal struct type representing a hash bucket
    }
    
    // MapType returns t's extra map-specific fields.
    func (t *Type) MapType() *Map {
    	t.wantEtype(TMAP)
    	return t.extra.(*Map)
    }
    
    // Forward contains Type fields specific to forward types.
    type Forward struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  9. src/internal/abi/type.go

    }
    
    // Imethod represents a method on an interface type
    type Imethod struct {
    	Name NameOff // name of method
    	Typ  TypeOff // .(*FuncType) underneath
    }
    
    // ArrayType represents a fixed array type.
    type ArrayType struct {
    	Type
    	Elem  *Type // array element type
    	Slice *Type // slice type
    	Len   uintptr
    }
    
    // Len returns the length of t if t is an array type, otherwise 0
    func (t *Type) Len() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. src/reflect/type.go

    type rtype struct {
    	t abi.Type
    }
    
    func (t *rtype) common() *abi.Type {
    	return &t.t
    }
    
    func (t *rtype) uncommon() *abi.UncommonType {
    	return t.t.Uncommon()
    }
    
    type aNameOff = abi.NameOff
    type aTypeOff = abi.TypeOff
    type aTextOff = abi.TextOff
    
    // ChanDir represents a channel type's direction.
    type ChanDir int
    
    const (
    	RecvDir ChanDir             = 1 << iota // <-chan
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top