Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for expectedSizes (0.08 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

            void testCombinedSizeCalculation() {
                CreateContextRequest[] contexts = new CreateContextRequest[5];
                int[] expectedSizes = { 16, 24, 32, 40, 48 };
    
                for (int i = 0; i < contexts.length; i++) {
                    contexts[i] = new MockCreateContextRequest("CTX" + i, expectedSizes[i]);
                }
    
                // Calculate total size
                int totalSize = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashSet.java

       *
       * @param expectedSize the initial capacity of this {@code CompactHashSet}.
       */
      CompactHashSet(int expectedSize) {
        init(expectedSize);
      }
    
      /** Pseudoconstructor for serialization support. */
      void init(int expectedSize) {
        Preconditions.checkArgument(expectedSize >= 0, "Expected size must be >= 0");
    
        // Save expectedSize for use in allocArrays()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        void testGetSendBufferSizeStandard() {
            // Arrange
            int expectedSize = 65536;
            when(negotiationResponse.getSendBufferSize()).thenReturn(expectedSize);
    
            // Act
            int size = negotiationResponse.getSendBufferSize();
    
            // Assert
            assertEquals(expectedSize, size);
            verify(negotiationResponse).getSendBufferSize();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashMap.java

       *
       * @param expectedSize the initial capacity of this {@code CompactHashMap}.
       */
      CompactHashMap(int expectedSize) {
        init(expectedSize);
      }
    
      /** Pseudoconstructor for serialization support. */
      void init(int expectedSize) {
        Preconditions.checkArgument(expectedSize >= 0, "Expected size must be >= 0");
    
        // Save expectedSize for use in allocArrays()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 56;
            int nameLen = 2 * "test.txt".length();
            expectedSize += ((nameLen + 7) / 8) * 8; // size8(nameLen)
            expectedSize = ((expectedSize + 7) / 8) * 8; // size8(size)
    
            assertEquals(expectedSize, request.size());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. guava/src/com/google/common/collect/ImmutableSet.java

       *
       * @since 23.1
       */
      public static <E> Builder<E> builderWithExpectedSize(int expectedSize) {
        checkNonnegative(expectedSize, "expectedSize");
        return new Builder<>(expectedSize);
      }
    
      /**
       * A builder for creating {@code ImmutableSet} instances. Example:
       *
       * {@snippet :
       * static final ImmutableSet<Color> GOOGLE_COLORS =
       *     ImmutableSet.<Color>builder()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
Back to top