Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for sliceType (0.15 sec)

  1. src/encoding/gob/type.go

    }
    
    func (m *mapType) string() string { return m.safeString(make(map[typeId]bool)) }
    
    // Slice type
    type sliceType struct {
    	CommonType
    	Elem typeId
    }
    
    func newSliceType(name string) *sliceType {
    	s := &sliceType{CommonType{Name: name}, 0}
    	return s
    }
    
    func (s *sliceType) init(elem gobType) {
    	// Set our type id before evaluating the element's, in case it's our own.
    	setTypeId(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/positions.go

    			return n.Pos()
    		case *CallExpr:
    			m = n.Fun
    		case *ListExpr:
    			if len(n.ElemList) > 0 {
    				m = n.ElemList[0]
    				continue
    			}
    			return n.Pos()
    		// types
    		// case *ArrayType:
    		// case *SliceType:
    		// case *DotsType:
    		// case *StructType:
    		// case *Field:
    		// case *InterfaceType:
    		// case *FuncType:
    		// case *MapType:
    		// case *ChanType:
    
    		// statements
    		// case *EmptyStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/runtime/type.go

    }
    
    type uncommontype = abi.UncommonType
    
    type interfacetype = abi.InterfaceType
    
    type maptype = abi.MapType
    
    type arraytype = abi.ArrayType
    
    type chantype = abi.ChanType
    
    type slicetype = abi.SliceType
    
    type functype = abi.FuncType
    
    type ptrtype = abi.PtrType
    
    type name = abi.Name
    
    type structtype = abi.StructType
    
    func pkgPath(n name) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/internal/reflectlite/reflect_mirror_test.go

    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var typeNames = []string{
    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    	v.m = make(map[string]map[string]bool)
    
    	return v
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/internal/reflectlite/type.go

    type chanType = abi.ChanType
    
    type funcType = abi.FuncType
    
    type interfaceType = abi.InterfaceType
    
    // ptrType represents a pointer type.
    type ptrType = abi.PtrType
    
    // sliceType represents a slice type.
    type sliceType = abi.SliceType
    
    // structType represents a struct type.
    type structType = abi.StructType
    
    // name is an encoded type name with optional extra data.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/parser.go

    	t := new(ArrayType)
    	t.pos = pos
    	t.Len = len
    	t.Elem = p.type_()
    	return t
    }
    
    // "[" and "]" have already been consumed, and pos is the position of "[".
    func (p *parser) sliceType(pos Pos) Expr {
    	t := new(SliceType)
    	t.pos = pos
    	t.Elem = p.type_()
    	return t
    }
    
    func (p *parser) chanElem() Expr {
    	if trace {
    		defer p.trace("chanElem")()
    	}
    
    	typ := p.typeOrNil()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/builtin.go

    	res.SetType(n.Type())
    	return walkExpr(res, init)
    }
    
    func walkUnsafeSlice(n *ir.BinaryExpr, init *ir.Nodes) ir.Node {
    	ptr := safeExpr(n.X, init)
    	len := safeExpr(n.Y, init)
    	sliceType := n.Type()
    
    	lenType := types.Types[types.TINT64]
    	unsafePtr := typecheck.Conv(ptr, types.Types[types.TUNSAFEPTR])
    
    	// If checkptr enabled, call runtime.unsafeslicecheckptr to check ptr and len.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  8. src/encoding/gob/doc.go

    pair (-type id, encoded-type) where encoded-type is the gob encoding of a wireType
    description, constructed from these types:
    
    	type wireType struct {
    		ArrayT           *ArrayType
    		SliceT           *SliceType
    		StructT          *StructType
    		MapT             *MapType
    		GobEncoderT      *gobEncoderType
    		BinaryMarshalerT *gobEncoderType
    		TextMarshalerT   *gobEncoderType
    
    	}
    	type arrayType 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)
  9. src/internal/abi/type.go

    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	case Func:
    		type u struct {
    			FuncType
    			u UncommonType
    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	case Slice:
    		type u struct {
    			SliceType
    			u UncommonType
    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	case Array:
    		type u struct {
    			ArrayType
    			u UncommonType
    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	case Chan:
    		type u struct {
    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/go/internal/gcimporter/iimport.go

    )
    
    type ident struct {
    	pkg  *types.Package
    	name string
    }
    
    const predeclReserved = 32
    
    type itag uint64
    
    const (
    	// Types
    	definedType itag = iota
    	pointerType
    	sliceType
    	arrayType
    	chanType
    	mapType
    	signatureType
    	structType
    	interfaceType
    	typeParamType
    	instanceType
    	unionType
    )
    
    // iImportData imports a package from the serialized package data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top