- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for InSlice (0.12 sec)
-
src/runtime/type.go
case abi.Func: ft := (*functype)(unsafe.Pointer(t)) fv := (*functype)(unsafe.Pointer(v)) if ft.OutCount != fv.OutCount || ft.InCount != fv.InCount { return false } tin, vin := ft.InSlice(), fv.InSlice() for i := 0; i < len(tin); i++ { if !typesEqual(tin[i], vin[i], seen) { return false } } tout, vout := ft.OutSlice(), fv.OutSlice() for i := 0; i < len(tout); i++ {
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/abi/type.go
} func (t *FuncType) In(i int) *Type { return t.InSlice()[i] } func (t *FuncType) NumIn() int { return int(t.InCount) } func (t *FuncType) NumOut() int { return int(t.OutCount & (1<<15 - 1)) } func (t *FuncType) Out(i int) *Type { return (t.OutSlice()[i]) } func (t *FuncType) InSlice() []*Type { uadd := unsafe.Sizeof(*t) if t.TFlag&TFlagUncommon != 0 {
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/reflect/abi.go
if stkStep != nil { if isPtr { stackPtrs.append(1) } else { stackPtrs.append(0) } } else { spill += goarch.PtrSize } } for i, arg := range t.InSlice() { stkStep := in.addArg(arg) if stkStep != nil { addTypeBits(stackPtrs, stkStep.stkOff, arg) } else { spill = align(spill, uintptr(arg.Align())) spill += arg.Size()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:08:32 UTC 2024 - 15K bytes - Viewed (0) -
src/runtime/syscall_windows.go
} ft := (*functype)(unsafe.Pointer(fn._type)) // Check arguments and construct ABI translation. var abiMap abiDesc for _, t := range ft.InSlice() { abiMap.assignArg(t) } // The Go ABI aligns the result to the word size. src is // already aligned. abiMap.dstStackSize = alignUp(abiMap.dstStackSize, goarch.PtrSize) abiMap.retOffset = abiMap.dstStackSize
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 16.6K bytes - Viewed (0) -
src/internal/reflectlite/type.go
func (t rtype) Elem() Type { return toType(elem(t.common())) } func (t rtype) In(i int) Type { tt := t.Type.FuncType() if tt == nil { panic("reflect: In of non-func type") } return toType(tt.InSlice()[i]) } func (t rtype) Key() Type { tt := t.Type.MapType() if tt == nil { panic("reflect: Key of non-map type") } return toType(tt.Key) } func (t rtype) Len() int {
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/runtime/mfinal.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 01:56:56 UTC 2024 - 19K bytes - Viewed (0) -
src/reflect/type.go
m.Name = pname.Name() fl := flag(Func) mtyp := t.typeOff(p.Mtyp) ft := (*funcType)(unsafe.Pointer(mtyp)) in := make([]Type, 0, 1+ft.NumIn()) in = append(in, t) for _, arg := range ft.InSlice() { in = append(in, toRType(arg)) } out := make([]Type, 0, ft.NumOut()) for _, ret := range ft.OutSlice() { out = append(out, toRType(ret)) } mt := FuncOf(in, out, ft.IsVariadic()) m.Type = mt
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/reflect/value.go
} ftyp := ctxt.ftyp f := ctxt.fn _, _, abid := funcLayout(ftyp, nil) // Copy arguments into Values. ptr := frame in := make([]Value, 0, int(ftyp.InCount)) for i, typ := range ftyp.InSlice() { if typ.Size() == 0 { in = append(in, Zero(toRType(typ))) continue } v := Value{typ, nil, flag(typ.Kind())} steps := abid.call.stepsForValue(i) if st := steps[0]; st.kind == abiStepStack {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
common/config/.golangci.yml
- sloppyLen - stringXbytes - switchTrue - typeAssertChain - typeSwitchVar - typeUnparen - underef - unlambda - unnecessaryBlock - unslice - valSwap - weakCond depguard: rules: DenyGogoProtobuf: files: - $all deny: - pkg: github.com/gogo/protobuf
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 20:03:06 UTC 2024 - 11.3K bytes - Viewed (0)