Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 564 for SLICE (0.07 sec)

  1. src/go/types/subst.go

    		}
    
    	case *Array:
    		elem := subst.typOrNil(t.elem)
    		if elem != t.elem {
    			return &Array{len: t.len, elem: elem}
    		}
    
    	case *Slice:
    		elem := subst.typOrNil(t.elem)
    		if elem != t.elem {
    			return &Slice{elem: elem}
    		}
    
    	case *Struct:
    		if fields, copied := subst.varList(t.fields); copied {
    			s := &Struct{fields: fields, tags: t.tags}
    			s.markComplete()
    			return s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. pkg/util/net/ip.go

    // IsIPv4Address returns if ip is IPv4.
    func IsIPv4Address(ip string) bool {
    	ipa, err := netip.ParseAddr(ip)
    	if err != nil {
    		return false
    	}
    	return ipa.Is4()
    }
    
    // IPsSplitV4V6 returns two slice of ipv4 and ipv6 string slice.
    func IPsSplitV4V6(ips []string) (ipv4 []string, ipv6 []string) {
    	for _, i := range ips {
    		ip, err := netip.ParseAddr(i)
    		if err != nil {
    			log.Debugf("ignoring un-parsable IP address: %v", err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/builtins0.go

    }
    
    func Slice1() {
    	var x int
    	unsafe.Slice()        // ERROR "not enough arguments"
    	unsafe.Slice(1, 2, 3) // ERROR "too many arguments"
    	unsafe.Slice(1 /* ERROR "is not a pointer" */ , 2)
    	unsafe.Slice(nil /* ERROR "nil is not a pointer" */ , 0)
    	unsafe.Slice(&x, "foo" /* ERRORx `cannot convert .* to type int` */ )
    	unsafe.Slice(&x, 1.2 /* ERROR "truncated to int" */ )
    	unsafe.Slice(&x, - /* ERROR "must not be negative" */ 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/subst.go

    		}
    
    	case *Array:
    		elem := subst.typOrNil(t.elem)
    		if elem != t.elem {
    			return &Array{len: t.len, elem: elem}
    		}
    
    	case *Slice:
    		elem := subst.typOrNil(t.elem)
    		if elem != t.elem {
    			return &Slice{elem: elem}
    		}
    
    	case *Struct:
    		if fields, copied := subst.varList(t.fields); copied {
    			s := &Struct{fields: fields, tags: t.tags}
    			s.markComplete()
    			return s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/reflect/iter.go

    // If v's kind is Pointer, the pointer element type must have kind Array.
    // Otherwise v's kind must be Int, Int8, Int16, Int32, Int64,
    // Uint, Uint8, Uint16, Uint32, Uint64, Uintptr,
    // Array, Chan, Map, Slice, or String.
    func (v Value) Seq() iter.Seq[Value] {
    	if canRangeFunc(v.typ()) {
    		return func(yield func(Value) bool) {
    			rf := MakeFunc(v.Type().In(0), func(in []Value) []Value {
    				return []Value{ValueOf(yield(in[0]))}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. errors.go

    	// ErrEmptySlice empty slice found
    	ErrEmptySlice = errors.New("empty slice found")
    	// ErrDryRunModeUnsupported dry run mode unsupported
    	ErrDryRunModeUnsupported = errors.New("dry run mode unsupported")
    	// ErrInvalidDB invalid db
    	ErrInvalidDB = errors.New("invalid db")
    	// ErrInvalidValue invalid value
    	ErrInvalidValue = errors.New("invalid value, should be pointer to struct or slice")
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 02:53:17 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. pkg/proxy/kubemark/hollow_proxy.go

    func (*FakeProxier) OnServiceSynced()                                                 {}
    func (*FakeProxier) OnEndpointSliceAdd(slice *discoveryv1.EndpointSlice)              {}
    func (*FakeProxier) OnEndpointSliceUpdate(oldSlice, slice *discoveryv1.EndpointSlice) {}
    func (*FakeProxier) OnEndpointSliceDelete(slice *discoveryv1.EndpointSlice)           {}
    func (*FakeProxier) OnEndpointSlicesSynced()                                          {}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

        Value slice =
            builder
                .create<TF::SliceOp>(
                    loc, ArrayRef<Type>{old_slice.getType()},
                    ArrayRef<Value>{updates, update_slice_starts, slice_sizes})
                .getOutput();
        slice = AccumulateBuffers(old_slice, slice, builder, loc);
        buffer = SetElement(index, buffer, slice, builder, loc);
      }
      return buffer;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. pkg/proxy/endpointslicecache.go

    	// slice trackers grouped by service name and endpoint slice name. The first
    	// key represents a namespaced service name while the second key represents
    	// an endpoint slice name. Since endpoints can move between slices, we
    	// require slice specific caching to prevent endpoints being removed from
    	// the cache when they may have just moved to a different slice.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/runtime/arena.go

    	}
    	i := efaceOf(&sl)
    	typ := i._type
    	if typ.Kind_&abi.KindMask != abi.Pointer {
    		panic("slice result of non-ptr type")
    	}
    	typ = (*ptrtype)(unsafe.Pointer(typ)).Elem
    	if typ.Kind_&abi.KindMask != abi.Slice {
    		panic("slice of non-ptr-to-slice type")
    	}
    	typ = (*slicetype)(unsafe.Pointer(typ)).Elem
    	// t is now the element type of the slice we want to allocate.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top