- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for SliceType (0.36 sec)
-
test/fixedbugs/issue29312.go
// This test is not for a fix of 29312 proper, but for the patch that // makes sure we at least don't have a security hole because of 29312. // This code generates lots of types. The binary should contain // a runtime.slicetype for each of the following 253 types: // // []*pwn // [][]*pwn // ... // [][]...[][]*pwn - 249 total "[]" // [][]...[][][]*pwn - 250 total "[]"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 11:28:56 UTC 2022 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/iexport.go
// PkgPath stringOff // } // // type PointerType struct { // Tag itag // pointerType // Elem typeOff // } // // type SliceType struct { // Tag itag // sliceType // Elem typeOff // } // // type ArrayType struct { // Tag itag // arrayType // Len uint64 // Elem typeOff // } //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 02:40:02 UTC 2023 - 6.8K bytes - Viewed (0) -
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/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) -
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) -
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/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) -
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/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) -
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)