Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 94 for cap (0.14 sec)

  1. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

            /*
             * It's very unlikely that any loaded Futures class will see getChecked called with more
             * than a handful of exceptions. But it seems prudent to set a cap on how many we'll cache.
             * This avoids out-of-control memory consumption, and it keeps the cache from growing so
             * large that doing the lookup is noticeably slower than redoing the work would be.
             *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  2. manifests/charts/istio-cni/values.yaml

          # Note the pod will be crashlooping, so this may take a few minutes to become fully functional based on when the retry occurs.
          # This requires no RBAC privilege, but does require `securityContext.privileged/CAP_SYS_ADMIN`.
          repairPods: true
    
          initContainerName: "istio-validation"
    
          brokenPodLabelKey: "cni.istio.io/uninitialized"
          brokenPodLabelValue: "true"
    
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.2K bytes
    - Viewed (1)
  3. cmd/batch-replicate_gen.go

    				return
    			}
    		case "Tags":
    			var zb0002 uint32
    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Tags")
    				return
    			}
    			if cap(z.Tags) >= int(zb0002) {
    				z.Tags = (z.Tags)[:zb0002]
    			} else {
    				z.Tags = make([]BatchJobKV, zb0002)
    			}
    			for za0001 := range z.Tags {
    				err = z.Tags[za0001].DecodeMsg(dc)
    				if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 18:51:46 GMT 2023
    - 40.6K bytes
    - Viewed (0)
  4. cmd/streaming-v4-unsigned.go

    				fmt.Printf("err size: %v\n", string(b))
    			}
    			cr.err = errMalformedEncoding
    			return n, cr.err
    		}
    		if size > maxChunkSize {
    			cr.err = errChunkTooBig
    			return n, cr.err
    		}
    	}
    
    	if cap(cr.buffer) < size {
    		cr.buffer = make([]byte, size)
    	} else {
    		cr.buffer = cr.buffer[:size]
    	}
    
    	// Now, we read the payload.
    	_, err = io.ReadFull(cr.reader, cr.buffer)
    	if err == io.EOF && size != 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 06 02:53:12 GMT 2023
    - 6.1K bytes
    - Viewed (1)
  5. internal/s3select/json/preader.go

    // return the buffer until the next newline occurs.
    // The last block will be sent along with an io.EOF.
    func (r *PReader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    		dst = make([]byte, 0, skip+1024)
    	}
    	dst = dst[:skip]
    	if skip > 0 {
    		n, err := io.ReadFull(r.buf, dst)
    		if err != nil && err != io.ErrUnexpectedEOF {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2.go

    func metaDataPoolGet() []byte {
    	return metaDataPool.Get().([]byte)[:0]
    }
    
    // metaDataPoolPut will put an unused small buffer back into the pool.
    func metaDataPoolPut(buf []byte) {
    	if cap(buf) >= metaDataReadDefault && cap(buf) < metaDataReadDefault*4 {
    		//nolint:staticcheck // SA6002 we are fine with the tiny alloc
    		metaDataPool.Put(buf)
    	}
    }
    
    // readXLMetaNoData will load the metadata, but skip data segments.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/primitives/Longs.java

        if (digit < 0 || digit >= radix) {
          return null;
        }
        long accum = -digit;
    
        long cap = Long.MIN_VALUE / radix;
    
        while (index < string.length()) {
          digit = AsciiDigits.digit(string.charAt(index++));
          if (digit < 0 || digit >= radix || accum < cap) {
            return null;
          }
          accum *= radix;
          if (accum < Long.MIN_VALUE + digit) {
            return null;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  8. internal/grid/muxserver.go

    }
    
    func (m *muxServer) message(msg message) {
    	if debugPrint {
    		fmt.Printf("muxServer: received message %d, length %d\n", msg.Seq, len(msg.Payload))
    	}
    	m.recvMu.Lock()
    	defer m.recvMu.Unlock()
    	if cap(m.inbound) == 0 {
    		m.disconnect("did not expect inbound message")
    		return
    	}
    	if !m.checkSeq(msg.Seq) {
    		return
    	}
    	// Note, on EOF no value can be sent.
    	if msg.Flags&FlagEOF != 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    			if !reflect.DeepEqual(a, b) {
    				t.Errorf("Split disagrees withSplitN(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, b, a)
    			}
    		}
    		if len(a) > 0 {
    			in, out := a[0], s
    			if cap(in) == cap(out) && &in[:1][0] == &out[:1][0] {
    				t.Errorf("Join(%#v, %q) didn't copy", a, tt.sep)
    			}
    		}
    	}
    }
    
    var splitaftertests = []SplitTest{
    	{abcd, "a", -1, []string{"a", "bcd"}},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. cmd/bucket-stats_gen.go

    				case "Nodes":
    					var zb0003 uint32
    					zb0003, err = dc.ReadArrayHeader()
    					if err != nil {
    						err = msgp.WrapError(err, "QueueStats", "Nodes")
    						return
    					}
    					if cap(z.QueueStats.Nodes) >= int(zb0003) {
    						z.QueueStats.Nodes = (z.QueueStats.Nodes)[:zb0003]
    					} else {
    						z.QueueStats.Nodes = make([]ReplQNodeStats, zb0003)
    					}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 57.5K bytes
    - Viewed (0)
Back to top