Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 402 for SLICE (2.35 sec)

  1. pkg/controller/endpointslice/endpointslice_controller.go

    	defer c.eventBroadcaster.Shutdown()
    
    	defer c.serviceQueue.ShutDown()
    	defer c.topologyQueue.ShutDown()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting endpoint slice controller")
    	defer logger.Info("Shutting down endpoint slice controller")
    
    	if !cache.WaitForNamedCacheSync("endpoint_slice", ctx.Done(), c.podsSynced, c.servicesSynced, c.endpointSlicesSynced, c.nodesSynced) {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. cmd/metacache-entries.go

    // Order is preserved, but the underlying slice is modified.
    func (m *metaCacheEntriesSorted) filterObjectsOnly() {
    	dst := m.o[:0]
    	for _, o := range m.o {
    		if !o.isDir() {
    			dst = append(dst, o)
    		}
    	}
    	m.o = dst
    }
    
    // filterPrefixesOnly will remove objects.
    // Order is preserved, but the underlying slice is modified.
    func (m *metaCacheEntriesSorted) filterPrefixesOnly() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 04:34:26 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. src/net/textproto/reader.go

    	if line != nil {
    		line = bytes.Clone(line)
    	}
    	return line, err
    }
    
    // readContinuedLineSlice reads continued lines from the reader buffer,
    // returning a byte slice with all lines. The validateFirstLine function
    // is run on the first read line, and if it returns an error then this
    // error is returned from readContinuedLineSlice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. src/syscall/dirent.go

    	}
    }
    
    // ParseDirent parses up to max directory entries in buf,
    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/encoding/gob/encode.go

    		switch t := typ; t.Kind() {
    		case reflect.Slice:
    			if t.Elem().Kind() == reflect.Uint8 {
    				op = encUint8Array
    				break
    			}
    			// Slices have a header; we decode it to find the underlying array.
    			elemOp, elemIndir := encOpFor(t.Elem(), inProgress, building)
    			helper := encSliceHelper[t.Elem().Kind()]
    			op = func(i *encInstr, state *encoderState, slice reflect.Value) {
    				if !state.sendZero && slice.Len() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/net/netip/netip.go

    // AddrFromSlice parses the 4- or 16-byte byte slice as an IPv4 or IPv6 address.
    // Note that a [net.IP] can be passed directly as the []byte argument.
    // If slice's length is not 4 or 16, AddrFromSlice returns [Addr]{}, false.
    func AddrFromSlice(slice []byte) (ip Addr, ok bool) {
    	switch len(slice) {
    	case 4:
    		return AddrFrom4([4]byte(slice)), true
    	case 16:
    		return AddrFrom16([16]byte(slice)), true
    	}
    	return Addr{}, false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescValueParameterSymbol.kt

                        // Implicit lambda parameter doesn't have a source PSI.
                        descriptor.source.getPsi() == null &&
                        // But, that could be the case for a declaration from Library. Double-check the slice in the binding context
                        (descriptor.containingDeclaration.source.getPsi() as? KtFunctionLiteral)?.let { parentLambda ->
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/reflect/all_test.go

    	}
    	if cap(v) != 6 {
    		t.Errorf("cap(xa.Slice(2, 5)) = %d", cap(v))
    	}
    	if !DeepEqual(v[0:6], xa[2:]) {
    		t.Errorf("xs.Slice(2, 5)[0:6] = %v", v[0:6])
    	}
    	s := "0123456789"
    	vs := ValueOf(s).Slice(3, 5).Interface().(string)
    	if vs != s[3:5] {
    		t.Errorf("s.Slice(3, 5) = %q; expected %q", vs, s[3:5])
    	}
    
    	rv := ValueOf(&xs).Elem()
    	rv = rv.Slice(3, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  9. pilot/test/xdstest/endpoints.go

    	if len(got) != len(want) {
    		return fmt.Errorf("unexpected number of filtered endpoints for %s: got %v, want %v", cluster, len(got), len(want))
    	}
    
    	sort.Slice(got, func(i, j int) bool {
    		addrI := util.GetEndpointHost(got[i].LbEndpoints[0])
    		addrJ := util.GetEndpointHost(got[j].LbEndpoints[0])
    		return addrI < addrJ
    	})
    
    	for i, ep := range got {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/internal/coverage/pods/pods.go

    // element of the "Origins" field below will be populated with the
    // index of the originating directory for the corresponding counter
    // data file (within the slice of input dirs handed to CollectPods).
    // The ProcessIDs field will be populated with the process ID of each
    // data file in the CounterDataFiles slice.
    type Pod struct {
    	MetaFile         string
    	CounterDataFiles []string
    	Origins          []int
    	ProcessIDs       []int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top