Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for SliceType (0.22 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/encoding/asn1/asn1.go

    		// version numbers have increased.
    		return
    	case reflect.Slice:
    		sliceType := fieldType
    		if sliceType.Elem().Kind() == reflect.Uint8 {
    			val.Set(reflect.MakeSlice(sliceType, len(innerBytes), len(innerBytes)))
    			reflect.Copy(val, reflect.ValueOf(innerBytes))
    			return
    		}
    		newSlice, err1 := parseSequenceOf(innerBytes, sliceType, sliceType.Elem())
    		if err1 == nil {
    			val.Set(newSlice)
    		}
    		err = err1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K 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/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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/encoding/asn1/marshal.go

    				if err != nil {
    					return nil, err
    				}
    			}
    
    			return multiEncoder(m), nil
    		}
    	case reflect.Slice:
    		sliceType := v.Type()
    		if sliceType.Elem().Kind() == reflect.Uint8 {
    			return bytesEncoder(v.Bytes()), nil
    		}
    
    		var fp fieldParameters
    
    		switch l := v.Len(); l {
    		case 0:
    			return bytesEncoder(nil), nil
    		case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. src/runtime/iface.go

    	uint16Type *_type = efaceOf(&uint16Eface)._type
    	uint32Type *_type = efaceOf(&uint32Eface)._type
    	uint64Type *_type = efaceOf(&uint64Eface)._type
    	stringType *_type = efaceOf(&stringEface)._type
    	sliceType  *_type = efaceOf(&sliceEface)._type
    )
    
    // The conv and assert functions below do very similar things.
    // The convXXX functions are guaranteed by the compiler to succeed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top