Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 118 for nilslice (0.33 sec)

  1. src/cmd/compile/internal/staticinit/sched.go

    			// copy pointer
    			staticdata.InitAddr(l, loff, staticdata.GlobalLinksym(s.Temps[r]))
    			return true
    		}
    
    	case ir.OSLICELIT:
    		r := r.(*ir.CompLitExpr)
    		// copy slice
    		staticdata.InitSlice(l, loff, staticdata.GlobalLinksym(s.Temps[r]), r.Len)
    		return true
    
    	case ir.OARRAYLIT, ir.OSTRUCTLIT:
    		r := r.(*ir.CompLitExpr)
    		p := s.Plans[r]
    		for i := range p.E {
    			e := &p.E[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/mkbuiltin.go

    			log.Fatalf("unhandled type: %#v", t)
    		}
    		return "types.Types[types.TUNSAFEPTR]"
    
    	case *ast.ArrayType:
    		if t.Len == nil {
    			return fmt.Sprintf("types.NewSlice(%s)", i.subtype(t.Elt))
    		}
    		return fmt.Sprintf("types.NewArray(%s, %d)", i.subtype(t.Elt), intconst(t.Len))
    	case *ast.ChanType:
    		dir := "types.Cboth"
    		switch t.Dir {
    		case ast.SEND:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/decompose.go

    				}
    				f.NamedValues[*ptrName] = append(f.NamedValues[*ptrName], v.Args[0])
    				f.NamedValues[*lenName] = append(f.NamedValues[*lenName], v.Args[1])
    				toDelete = append(toDelete, namedVal{i, j})
    			}
    		case t.IsSlice():
    			ptrName, lenName, capName := f.SplitSlice(name)
    			newNames = maybeAppend2(f, newNames, ptrName, lenName)
    			newNames = maybeAppend(f, newNames, capName)
    			for j, v := range f.NamedValues[*name] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  4. common/scripts/kind_provisioner.sh

    from ipaddress import ip_network, IPv6Network;
    from itertools import islice;
    
    net = ip_network('$CIDR')
    net_bits = 128 if type(net) == IPv6Network else 32;
    net_len = pow(2, net_bits - net.prefixlen)
    start, end = int(net_len / 4 * 3), net_len
    if net_len > 2000:
      start, end = 1000, 2000
    
    [print(str(ip) + "/" + str(ip.max_prefixlen)) for ip in islice(ip_network('$CIDR').hosts(), start, end)]
    EOF
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 19:12:55 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. internal/config/cache/remote_gen.go

    	if z.IfModifiedSince == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.TimeSize
    	}
    	s += 18
    	if z.IfUnModifiedSince == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.TimeSize
    	}
    	s += 8 + msgp.StringPrefixSize + len(z.IfRange) + 13 + msgp.IntSize
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  6. src/go/types/issues_test.go

    	{
    		P := NewTypeName(nopos, nil, "P", nil) // [P []int]
    		makeSig(NewTypeParam(P, NewInterfaceType(nil, []Type{NewSlice(Typ[Int])})))
    	}
    
    	// P where P's core type is bytestring (i.e., string or []byte)
    	{
    		t1 := NewTerm(true, Typ[String])          // ~string
    		t2 := NewTerm(false, NewSlice(Typ[Byte])) // []byte
    		u := NewUnion([]*Term{t1, t2})            // ~string | []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/reflectdata/helpers.go

    // expression that yields the *runtime._type value representing typ's
    // element type.
    func sliceElemRType(pos src.XPos, typ *types.Type) ir.Node {
    	base.AssertfAt(typ.IsSlice(), pos, "want slice type, have %v", typ)
    	return TypePtrAt(pos, typ.Elem())
    }
    
    // concreteRType asserts that typ is not an interface type, and
    // returns an expression that yields the *runtime._type value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/issues_test.go

    	{
    		P := NewTypeName(nopos, nil, "P", nil) // [P []int]
    		makeSig(NewTypeParam(P, NewInterfaceType(nil, []Type{NewSlice(Typ[Int])})))
    	}
    
    	// P where P's core type is bytestring (i.e., string or []byte)
    	{
    		t1 := NewTerm(true, Typ[String])          // ~string
    		t2 := NewTerm(false, NewSlice(Typ[Byte])) // []byte
    		u := NewUnion([]*Term{t1, t2})            // ~string | []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  9. 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)
  10. cmd/xl-storage-format-v2_gen.go

    	s = 1 + 5 + msgp.Uint8Size + 6
    	if z.ObjectV1 == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.ObjectV1.Msgsize()
    	}
    	s += 6
    	if z.ObjectV2 == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.ObjectV2.Msgsize()
    	}
    	s += 7
    	if z.DeleteMarker == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.DeleteMarker.Msgsize()
    	}
    	s += 2 + msgp.Uint64Size
    	return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
Back to top