- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 41 for sliceType (0.31 sec)
-
src/reflect/type.go
// mapType represents a map type. type mapType struct { abi.MapType } // ptrType represents a pointer type. type ptrType struct { abi.PtrType } // sliceType represents a slice type. type sliceType struct { abi.SliceType } // Struct field type structField = abi.StructField // structType represents a struct type. type structType struct { abi.StructType }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/go/printer/testdata/declarations.input
} Type struct { Typ, Ptr int } StructField struct { Name, PkgPath, Typ, Tag, Offset int } StructType struct { Fields int } PtrType struct { Elem int } SliceType struct { Elem int } ArrayType struct { Elem, Len int } Stktop struct { Stackguard, Stackbase, Gobuf int } Gobuf struct { Sp, Pc, G int } G struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 13 22:24:31 UTC 2021 - 16.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) -
src/go/printer/testdata/declarations.golden
} Type struct { Typ, Ptr int } StructField struct { Name, PkgPath, Typ, Tag, Offset int } StructType struct { Fields int } PtrType struct { Elem int } SliceType struct { Elem int } ArrayType struct { Elem, Len int } Stktop struct { Stackguard, Stackbase, Gobuf int } Gobuf struct { Sp, Pc, G int } G struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 13 22:24:31 UTC 2021 - 16.2K bytes - Viewed (0) -
src/encoding/gob/debug.go
// Field number 0 is CommonType deb.delta(1) com := deb.common() // Field number 1 is type Id of elem deb.delta(1) id := deb.typeId() wire.SliceT = &sliceType{com, id} case 2: // struct type, one field of {{Common}, []fieldType} // Field number 0 is CommonType deb.delta(1) com := deb.common() // Field number 1 is slice of FieldType deb.delta(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 09:34:41 UTC 2023 - 18.3K bytes - Viewed (0) -
src/fmt/scan_test.go
for _, s := range []string{"inf", "+inf", "-inf", "INF", "-INF", "+INF", "Inf", "-Inf", "+Inf"} { verifyInf(s, t) } } func testScanfMulti(t *testing.T, f func(string) io.Reader) { sliceType := reflect.TypeOf(make([]any, 1)) for _, test := range multiTests { r := f(test.text) n, err := Fscanf(r, test.format, test.in...) if err != nil { if test.err == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 20:25:13 UTC 2023 - 39.3K bytes - Viewed (0) -
src/runtime/arena.go
var x any switch t.Kind_ & abi.KindMask { case abi.String: s1 := s.(string) s2, b := rawstring(len(s1)) copy(b, s1) x = s2 case abi.Slice: len := (*slice)(e.data).len et := (*slicetype)(unsafe.Pointer(t)).Elem sl := new(slice) *sl = slice{makeslicecopy(et, len, len, (*slice)(e.data).array), len, len} xe := efaceOf(&x) xe._type = t xe.data = unsafe.Pointer(sl) case abi.Pointer:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/deadcode.go
off += 4 * arch.PtrSize case abi.Pointer: // reflect.ptrType off += arch.PtrSize case abi.Func: // reflect.funcType off += arch.PtrSize // 4 bytes, pointer aligned case abi.Slice: // reflect.sliceType off += arch.PtrSize case abi.Array: // reflect.arrayType off += 3 * arch.PtrSize case abi.Chan: // reflect.chanType off += 2 * arch.PtrSize case abi.Map: // reflect.mapType off += 4*arch.PtrSize + 8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 14:52:41 UTC 2024 - 19K bytes - Viewed (0) -
src/runtime/cgocall.go
if !cgoIsGoPointer(p) { return } if !top && !isPinned(p) { panic(errorString(msg)) } cgoCheckArg(it, p, it.Kind_&abi.KindDirectIface == 0, false, msg) case abi.Slice: st := (*slicetype)(unsafe.Pointer(t)) s := (*slice)(p) p = s.array if p == nil || !cgoIsGoPointer(p) { return } if !top && !isPinned(p) { panic(errorString(msg)) } if !st.Elem.Pointers() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 24.2K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/printer.go
case *ListExpr: p.printExprList(n.ElemList) case *ArrayType: var len interface{} = _DotDotDot if n.Len != nil { len = n.Len } p.print(_Lbrack, len, _Rbrack, n.Elem) case *SliceType: p.print(_Lbrack, _Rbrack, n.Elem) case *DotsType: p.print(_DotDotDot, n.Elem) case *StructType: p.print(_Struct) if len(n.FieldList) > 0 && p.linebreaks { p.print(blank) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 07:17:27 UTC 2023 - 21.5K bytes - Viewed (0)