Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 2,553 for nize (0.03 seconds)

  1. guava/src/com/google/common/collect/EvictingQueue.java

        if (maxSize == 0) {
          return true;
        }
        if (size() == maxSize) {
          delegate.remove();
        }
        delegate.add(e);
        return true;
      }
    
      @Override
      @CanIgnoreReturnValue
      public boolean addAll(Collection<? extends E> collection) {
        int size = collection.size();
        if (size >= maxSize) {
          clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/dtyp/ACETest.java

            testBuffer = new byte[100];
            testBuffer[0] = 0x00; // Allow ACE
            testBuffer[1] = 0x03; // FLAGS_OBJECT_INHERIT | FLAGS_CONTAINER_INHERIT
            testBuffer[2] = 0x20; // Size low byte (32)
            testBuffer[3] = 0x00; // Size high byte
            testBuffer[4] = (byte) 0xA9; // Access mask byte 0
            testBuffer[5] = 0x00; // Access mask byte 1
            testBuffer[6] = 0x12; // Access mask byte 2
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        @DisplayName("Should return max transact size")
        void testGetMaxTransactSize() throws Exception {
            // Given
            setPrivateField(response, "maxTransactSize", 1048576);
    
            // When
            int size = response.getMaxTransactSize();
    
            // Then
            assertEquals(1048576, size);
        }
    
        @Test
        @DisplayName("Should return transaction buffer size")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                // When
                int size = copy.size();
    
                // Then
                assertEquals(HEADER_SIZE, size);
            }
    
            @Test
            @DisplayName("Should return correct size with single chunk")
            void testSizeWithSingleChunk() {
                // Given
                byte[] sourceKey = new byte[SOURCE_KEY_SIZE];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  5. cmd/bucket-stats.go

    			N:     l.Totals[i].N + o.Totals[i].N,
    			Size:  l.Totals[i].Size + o.Totals[i].Size,
    		}
    	}
    	return merged
    }
    
    // Add  a new duration data
    func (l *ReplicationLastHour) addsize(sz int64) {
    	minutes := time.Now().Unix() / 60
    	l.forwardTo(minutes)
    	winIdx := minutes % 60
    	l.Totals[winIdx].merge(AccElem{Total: minutes, Size: sz, N: 1})
    	l.LastMin = minutes
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            byte[] buffer = new byte[104]; // Exact size needed
            int offset = 0;
    
            setHeaderStart(response, 64);
    
            // Write structure
            SMBUtil.writeInt2(9, buffer, offset);
            SMBUtil.writeInt2(80 - 64, buffer, offset + 2);
            SMBUtil.writeInt4(24, buffer, offset + 4); // Exact notification size
    
            // Write notification
            int notifyOffset = 80;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        createNewCacheWithSize(10)
        set("a", "a", "aaa") // size 4
        set("b", "bb", "bbbb") // size 6
        cache.maxSize = 20
        set("c", "c", "c") // size 12
        assertThat(cache.size()).isEqualTo(12)
      }
    
      @Test
      fun shrinkMaxSizeEvicts() {
        cache.close()
        createNewCacheWithSize(20)
        set("a", "a", "aaa") // size 4
        set("b", "bb", "bbbb") // size 6
        set("c", "c", "c") // size 12
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 59.4K bytes
    - Click Count (0)
  8. cmd/object-api-putobject_test.go

    func BenchmarkPutObject10KbFS(b *testing.B) {
    	benchmarkPutObject(b, "FS", 10*humanize.KiByte)
    }
    
    // BenchmarkPutObject10KbErasure - Benchmark Erasure.PutObject() for object size of 10KB.
    func BenchmarkPutObject10KbErasure(b *testing.B) {
    	benchmarkPutObject(b, "Erasure", 10*humanize.KiByte)
    }
    
    // BenchmarkPutObject100KbFS - Benchmark FS.PutObject() for object size of 100KB.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(0);
        written += 1;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        byte[] data = new byte[10];
        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2K bytes
    - Click Count (0)
  10. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 7.1K bytes
    - Click Count (0)
Back to Top