Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 75 for expectedSize (0.17 sec)

  1. android/guava/src/com/google/common/collect/HashBiMap.java

      private HashBiMap(int expectedSize) {
        init(expectedSize);
      }
    
      @SuppressWarnings("unchecked")
      void init(int expectedSize) {
        CollectPreconditions.checkNonnegative(expectedSize, "expectedSize");
        int tableSize = Hashing.closedTableSize(expectedSize, 1.0);
        size = 0;
    
        keys = (K[]) new Object[expectedSize];
        values = (V[]) new Object[expectedSize];
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
                assertNotNull(buffer);
                // Verify through encode since there are no getters
                int expectedSize = 4 + 2 * path.length();
                assertEquals(expectedSize, buffer.size());
            }
    
            @Test
            @DisplayName("Should create buffer with empty path")
            void testConstructorWithEmptyPath() {
                String path = "";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            FileRenameInformation2 info = new FileRenameInformation2(longFileName, false);
    
            int expectedSize = 20 + 2 * longFileName.length();
            assertEquals(expectedSize, info.size());
    
            byte[] buffer = new byte[expectedSize + 100];
            int bytesWritten = info.encode(buffer, 0);
    
            assertEquals(expectedSize, bytesWritten);
        }
    
        @Test
        @DisplayName("Test decode with empty filename")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                Smb2LockRequest req = new Smb2LockRequest(mockConfig, testFileId, singleLock);
    
                int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24 + 24; // header + structure + 1 lock
                expectedSize = ((expectedSize + 7) / 8) * 8; // 8-byte alignment
                assertEquals(expectedSize, req.size());
            }
    
            @Test
            @DisplayName("Should calculate size correctly with multiple locks")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Platform.java

          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return CompactHashMap.createWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

      CompactLinkedHashSet(int expectedSize) {
        super(expectedSize);
      }
    
      @Override
      void init(int expectedSize) {
        super.init(expectedSize);
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
      }
    
      @Override
      int allocArrays() {
        int expectedSize = super.allocArrays();
        this.predecessor = new int[expectedSize];
        this.successor = new int[expectedSize];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Platform.java

          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return Maps.newHashMapWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            request = new Smb2QueryDirectoryRequest(mockConfig);
    
            request.setFileName(null);
    
            // Verify size calculation doesn't include filename
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 32;
            assertEquals(((expectedSize + 7) & ~7), request.size());
        }
    
        @Test
        @DisplayName("Test setFileName method with non-null value")
        void testSetFileNameNonNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SmbFileHandleTest.java

         * Test getInitialSize() returns the correct size.
         */
        @Test
        void testGetInitialSize() {
            long expectedSize = 1024L;
            when(smbFileHandle.getInitialSize()).thenReturn(expectedSize);
            long actualSize = smbFileHandle.getInitialSize();
            assertEquals(expectedSize, actualSize, "getInitialSize should return the correct initial file size.");
            verify(smbFileHandle, times(1)).getInitialSize();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/CompactHashSetTest.java

          assertThat(set.needsAllocArrays()).isTrue();
          assertThat(set.elements).isNull();
    
          set.add(1);
          assertThat(set.needsAllocArrays()).isFalse();
          int expectedSize = max(1, i);
          assertThat(set.elements).hasLength(expectedSize);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top