Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 321 - 330 of 2,583 for ksize (0.32 seconds)

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

        int size = stream.readInt();
        populateMap(map, stream, size);
      }
    
      /**
       * Populates a map by reading an input stream, as part of deserialization. See {@link #writeMap}
       * for the data format.
       */
      static <K extends @Nullable Object, V extends @Nullable Object> void populateMap(
          Map<K, V> map, ObjectInputStream stream, int size)
          throws IOException, ClassNotFoundException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                assertEquals(16, bytesRead); // Structure size + reserved (4) + count (4) + remaining (4) + channel info (4)
                assertEquals(1024, response.getCount());
                assertEquals(512, response.getRemaining());
            }
    
            @Test
            @DisplayName("Should throw exception for invalid structure size")
            void testInvalidStructureSize() {
                byte[] buffer = new byte[64];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  3. docs/site-replication/run-ssec-object-replication.sh

    rep_obj3_etag=$(echo "${stat_out3_rep}" | jq '.etag')
    rep_obj3_size=$(echo "${stat_out3_rep}" | jq '.size')
    rep_obj3_md5=$(echo "${stat_out3_rep}" | jq '.metadata."X-Amz-Server-Side-Encryption-Customer-Key-Md5"')
    
    # Check the etag and size of replicated SSEC objects
    if [ "${rep_obj1_etag}" != "${src_obj1_etag}" ]; then
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Sep 24 08:03:58 GMT 2024
    - 9.9K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        hpackWriter!!.resizeHeaderTable(4096)
        hpackWriter!!.resizeHeaderTable(2048)
        hpackWriter!!.writeHeaders(listOf(Header("foo", "bar")))
        assertBytes(
          // Dynamic size update (size = 0).
          0x20,
          // Dynamic size update (size = 2048).
          0x3F,
          0xE1,
          0xF,
          0x40,
          3,
          'f'.code,
          'o'.code,
          'o'.code,
          3,
          'b'.code,
          'a'.code,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 38.6K bytes
    - Click Count (0)
  5. cmd/object-api-multipart_test.go

    					}
    					//  Asserting the Size in the PartInfo.
    					if actualMetaData.Size != expectedResult.Parts[j].Size {
    						t.Errorf("Test %d: %s: Part %d: Expected Part Size to be \"%d\", but instead found \"%d\"", i+1, instanceType, j+1, expectedResult.Parts[j].Size, actualMetaData.Size)
    					}
    					//  Asserting the ETag in the PartInfo.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 89.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                throw new RuntimeException(e);
            }
    
            int size = request.size();
    
            // Expected size calculation: size8(SMB2_HEADER_LENGTH + 40 + inputBuffer.size())
            int expectedRawSize = Smb2Constants.SMB2_HEADER_LENGTH + 40 + 100;
            int expectedSize = (expectedRawSize + 7) & ~7;
            assertEquals(expectedSize, size);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/Encodable.java

         * @return encoded length
         */
        int encode(byte[] dst, int dstIndex);
    
        /**
         * Returns the size in bytes that this object will occupy when encoded.
         *
         * @return the encoded size
         */
        int size();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  8. internal/lru/lru.go

    }
    
    // Resize changes the cache size. Size of 0 means unlimited.
    func (c *LRU[K, V]) Resize(size int) (evicted int) {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if size <= 0 {
    		c.size = 0
    		return 0
    	}
    	diff := c.evictList.Length() - size
    	if diff < 0 {
    		diff = 0
    	}
    	for i := 0; i < diff; i++ {
    		c.removeOldest()
    	}
    	c.size = size
    	return diff
    }
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/EnumMultiset.java

        }
      }
    
      @Override
      int distinctElements() {
        return distinctElements;
      }
    
      @Override
      public int size() {
        return Ints.saturatedCast(size);
      }
    
      @Override
      public int count(@Nullable Object element) {
        // isActuallyE checks for null, but we check explicitly to help nullness checkers.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

        }
    
        @Test
        @DisplayName("Test size calculation with short filename")
        void testSizeWithShortFilename() {
            FileRenameInformation2 info = new FileRenameInformation2("test.txt", false);
            // 20 bytes fixed + 2 * 8 chars = 20 + 16 = 36
            assertEquals(36, info.size());
        }
    
        @Test
        @DisplayName("Test size calculation with long filename")
        void testSizeWithLongFilename() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
Back to Top