Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,781 for isize (0.03 sec)

  1. cmd/bucket-quota.go

    		if uint64(size) >= quotaSize { // check if file size already exceeds the quota
    			return BucketQuotaExceeded{Bucket: bucket}
    		}
    
    		bui := sys.GetBucketUsageInfo(ctx, bucket)
    		if bui.Size > 0 && ((bui.Size + uint64(size)) >= quotaSize) {
    			return BucketQuotaExceeded{Bucket: bucket}
    		}
    	}
    
    	return nil
    }
    
    func enforceBucketQuotaHard(ctx context.Context, bucket string, size int64) error {
    	if globalBucketQuotaSys == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    		}
    		root.merge(e)
    	}
    	root.Children = nil
    	return root
    }
    
    // add a size to the histogram.
    func (h *sizeHistogram) add(size int64) {
    	// Fetch the histogram interval corresponding
    	// to the passed object size.
    	for i, interval := range ObjectsHistogramIntervals[:] {
    		if size >= interval.start && size <= interval.end {
    			h[i]++
    			break
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactHashing.java

      private static final int BYTE_MAX_SIZE = 1 << Byte.SIZE; // 2^8 = 256
      private static final int BYTE_MASK = (1 << Byte.SIZE) - 1; // 2^8 - 1 = 255
    
      private static final int SHORT_MAX_SIZE = 1 << Short.SIZE; // 2^16 = 65_536
      private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
    
      /**
       * Returns the power of 2 hashtable size required to hold the expected number of items or the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

        assertEquals(map.size(), oldSize - 1);
        assertFalse(map.containsKey(key));
        assertEquals(subMap.size(), oldSize - 2);
      }
    
      public void testTailMapClearThrough() {
        SortedMap<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
        int oldSize = map.size();
        if (map.size() < 2 || !supportsClear) {
          return;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

        USING_DECODER_WITH_SIZE_HINT {
          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            Optional<Long> size = byteSource.sizeIfKnown();
            // if we know the size and it fits in an int
            if (size.isPresent() && size.get().longValue() == size.get().intValue()) {
              // otherwise try to presize a StringBuilder
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

    }
    
    /**
     * Modifies [ranges] to combine any adjacent [MappedRange.InlineDelta] of same size to single entry.
     * @returns same instance of [ranges] for convenience
     */
    internal fun mergeAdjacentDeltaMappedRanges(ranges: MutableList<MappedRange>): MutableList<MappedRange> {
      var i = 0
      while (i < ranges.size) {
        val curr = ranges[i]
        if (curr is MappedRange.InlineDelta) {
          val j = i + 1
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        }
      }
    
      @Override
      final int distinctElements() {
        return backingMap.size();
      }
    
      @Override
      public final Iterator<E> iterator() {
        return Multisets.iteratorImpl(this);
      }
    
      @Override
      public final int size() {
        return Ints.saturatedCast(size);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

      public void testSubList_size() {
        List<E> list = getList();
        int size = getNumElements();
        assertEquals(size, list.subList(0, size).size());
        assertEquals(size - 1, list.subList(0, size - 1).size());
        assertEquals(size - 1, list.subList(1, size).size());
        assertEquals(0, list.subList(size, size).size());
        assertEquals(0, list.subList(0, 0).size());
      }
    
      @CollectionSize.Require(absent = {ZERO})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

      public void testSubList_size() {
        List<E> list = getList();
        int size = getNumElements();
        assertEquals(size, list.subList(0, size).size());
        assertEquals(size - 1, list.subList(0, size - 1).size());
        assertEquals(size - 1, list.subList(1, size).size());
        assertEquals(0, list.subList(size, size).size());
        assertEquals(0, list.subList(0, 0).size());
      }
    
      @CollectionSize.Require(absent = {ZERO})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-ResponseBodyCommon.kt

        throw IOException("Cannot buffer entire body for content length: $contentLength")
      }
    
      val bytes = source().use(consumer)
      val size = sizeMapper(bytes)
      if (contentLength != -1L && contentLength != size.toLong()) {
        throw IOException("Content-Length ($contentLength) and stream length ($size) disagree")
      }
      return bytes
    }
    
    internal fun ResponseBody.commonClose() = source().closeQuietly()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top