- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for SliceType (0.11 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/compile/internal/types2/typexpr.go
typ.len = -1 } typ.elem = check.varType(e.Elem) if typ.len >= 0 { return typ } // report error if we encountered [...] case *syntax.SliceType: typ := new(Slice) setDefType(def, typ) typ.elem = check.varType(e.Elem) return typ case *syntax.DotsType: // dots are handled explicitly where they are legal
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0)