Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 118 for nilslice (0.25 sec)

  1. src/go/internal/gcimporter/ureader.go

    		return types.NewMap(r.typ(), r.typ())
    	case pkgbits.TypePointer:
    		return types.NewPointer(r.typ())
    	case pkgbits.TypeSignature:
    		return r.signature(nil, nil, nil)
    	case pkgbits.TypeSlice:
    		return types.NewSlice(r.typ())
    	case pkgbits.TypeStruct:
    		return r.structType()
    	case pkgbits.TypeInterface:
    		return r.interfaceType()
    	case pkgbits.TypeUnion:
    		return r.unionType()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. internal/grid/msg_gen.go

    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *pongMsg) Msgsize() (s int) {
    	s = 1 + 3 + msgp.BoolSize + 2
    	if z.Err == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.StringPrefixSize + len(*z.Err)
    	}
    	return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 18.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/stmt.go

    		t = n.Tag.Type()
    	}
    
    	var nilonly string
    	if t != nil {
    		switch {
    		case t.IsMap():
    			nilonly = "map"
    		case t.Kind() == types.TFUNC:
    			nilonly = "func"
    		case t.IsSlice():
    			nilonly = "slice"
    
    		case !types.IsComparable(t):
    			if t.IsStruct() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  4. cmd/batch-expire_gen.go

    func (z *BatchJobExpireFilter) Msgsize() (s int) {
    	s = 1 + 10 + msgp.DurationSize + 14
    	if z.CreatedBefore == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.TimeSize
    	}
    	s += 5 + msgp.ArrayHeaderSize
    	for za0001 := range z.Tags {
    		s += z.Tags[za0001].Msgsize()
    	}
    	s += 9 + msgp.ArrayHeaderSize
    	for za0002 := range z.Metadata {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 19.8K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/compile/internal/walk/complit.go

    		// copy static to slice
    		var_ = typecheck.AssignExpr(var_)
    		name, offset, ok := staticinit.StaticLoc(var_)
    		if !ok || name.Class != ir.PEXTERN {
    			base.Fatalf("slicelit: %v", var_)
    		}
    		staticdata.InitSlice(name, offset, vstat.Linksym(), t.NumElem())
    		return
    	}
    
    	// recipe for var = []t{...}
    	// 1. make a static array
    	//	var vstat [...]t
    	// 2. assign (data statements) the constant part
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  7. operator/pkg/tpath/tree.go

    				}
    			}
    		}
    
    		npc := &PathContext{
    			Parent: nc,
    			Node:   nn,
    		}
    		// for slices, use the address so that the slice can be mutated.
    		if util.IsSlice(nn) {
    			npc.Node = &nn
    		}
    		nc.KeyToChild = pe
    		return getPathContext(npc, fullPath, remainPath[1:], createMissing)
    	}
    
    	return nil, false, fmt.Errorf("leaf type %T in non-leaf Node %s", nc.Node, remainPath)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  8. src/runtime/mfinal.go

    	}
    	if ft.InCount != 1 {
    		throw("runtime.SetFinalizer: cannot pass " + toRType(etyp).string() + " to finalizer " + toRType(ftyp).string())
    	}
    	fint := ft.InSlice()[0]
    	switch {
    	case fint == etyp:
    		// ok - same type
    		goto okarg
    	case fint.Kind_&abi.KindMask == abi.Pointer:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    		for _, fld := range list {
    			t := pass.TypesInfo.Types[fld.Type].Type
    
    			// Work around https://golang.org/issue/28277.
    			if t == nil {
    				if ell, ok := fld.Type.(*ast.Ellipsis); ok {
    					t = types.NewSlice(pass.TypesInfo.Types[ell.Elt].Type)
    				}
    			}
    
    			align := int(arch.sizes.Alignof(t))
    			size := int(arch.sizes.Sizeof(t))
    			offset += -offset & (align - 1)
    			cc := componentsOfType(arch, t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  10. src/reflect/value.go

    		fn = *(*unsafe.Pointer)(v.ptr)
    	} else {
    		fn = v.ptr
    	}
    
    	if fn == nil {
    		panic("reflect.Value.Call: call of nil function")
    	}
    
    	isSlice := op == "CallSlice"
    	n := t.NumIn()
    	isVariadic := t.IsVariadic()
    	if isSlice {
    		if !isVariadic {
    			panic("reflect: CallSlice of non-variadic function")
    		}
    		if len(in) < n {
    			panic("reflect: CallSlice with too few input arguments")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top