Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 68 for cap (6.68 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. cmd/erasure-decode.go

    	r2b := make([]int, len(readers))
    	for i := range r2b {
    		r2b[i] = i
    	}
    	bufs := make([][]byte, len(readers))
    	// Fill buffers
    	b := globalBytePoolCap.Load().Get()
    	shardSize := int(e.ShardSize())
    	if cap(b) < len(readers)*shardSize {
    		// We should always have enough capacity, but older objects may be bigger.
    		globalBytePoolCap.Load().Put(b)
    		b = nil
    	} else {
    		// Seed the buffers.
    		for i := range bufs {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(8, ImmutableSet.chooseTableSize(4));
    
        assertEquals(1 << 29, ImmutableSet.chooseTableSize(1 << 28));
        assertEquals(1 << 29, ImmutableSet.chooseTableSize((1 << 29) * 3 / 5));
    
        // Now we hit the cap
        assertEquals(1 << 30, ImmutableSet.chooseTableSize(1 << 29));
        assertEquals(1 << 30, ImmutableSet.chooseTableSize((1 << 30) - 1));
    
        // Now we've gone too far
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(8, ImmutableSet.chooseTableSize(4));
    
        assertEquals(1 << 29, ImmutableSet.chooseTableSize(1 << 28));
        assertEquals(1 << 29, ImmutableSet.chooseTableSize((1 << 29) * 3 / 5));
    
        // Now we hit the cap
        assertEquals(1 << 30, ImmutableSet.chooseTableSize(1 << 29));
        assertEquals(1 << 30, ImmutableSet.chooseTableSize((1 << 30) - 1));
    
        // Now we've gone too far
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

      private const val SETTINGS_HEADER_TABLE_SIZE = 4_096
    
      /**
       * The decoder has ultimate control of the maximum size of the dynamic table but we can choose
       * to use less. We'll put a cap at 16K. This is arbitrary but should be enough for most purposes.
       */
      private const val SETTINGS_HEADER_TABLE_SIZE_LIMIT = 16_384
    
      val STATIC_HEADER_TABLE =
        arrayOf(
          Header(TARGET_AUTHORITY, ""),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
  9. cmd/storage-datatypes.go

    }
    
    // Recycle will reuse the memory allocated for the FileInfo data.
    func (r *RenameDataInlineHandlerParams) Recycle() {
    	if r == nil {
    		return
    	}
    	if cap(r.FI.Data) >= xioutil.SmallBlock {
    		grid.PutByteBuffer(r.FI.Data)
    		r.FI.Data = nil
    	}
    }
    
    // RenameFileHandlerParams are parameters for RenameFileHandler.
    type RenameFileHandlerParams struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  10. cmd/streaming-signature-v4.go

    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	if err != nil {
    		cr.err = err
    		return n, cr.err
    	}
    	if b != '\n' {
    		cr.err = errMalformedEncoding
    		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 and compute its SHA-256 hash.
    	_, err = io.ReadFull(cr.reader, cr.buffer)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
Back to top