Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 353 for sizi (0.01 sec)

  1. src/main/java/jcifs/util/ServerResponseValidator.java

        }
    
        /**
         * Validate file size from server
         *
         * @param size file size
         * @throws SmbException if size is invalid
         */
        public void validateFileSize(long size) throws SmbException {
            totalValidations.incrementAndGet();
    
            if (size < 0) {
                failedValidations.incrementAndGet();
                log.warn("Negative file size: {}", size);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

        }
    
        @Test
        @DisplayName("Test size calculation with empty dialects array")
        void testSizeWithEmptyDialects() {
            int[] emptyDialects = new int[0];
            ValidateNegotiateInfoRequest request =
                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, DEFAULT_SECURITY_MODE, emptyDialects);
    
            // Expected size: 24 (fixed) + 0
            assertEquals(24, request.size());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                return Stream.of(Arguments.of(null, 4), // size() returns 4 even with null
                        Arguments.of(new int[0], 4), // size() returns 4 for empty array
                        Arguments.of(new int[] { 1 }, 4 + 2), // size() returns 4 + 2*1
                        Arguments.of(new int[] { 1, 2 }, 4 + 4), // size() returns 4 + 2*2
                        Arguments.of(new int[] { 1, 2, 3, 4, 5 }, 4 + 10) // size() returns 4 + 2*5
                );
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            assertEquals("Expected structureSize = 2", exception.getMessage());
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with zero structure size throws exception")
        void testReadBytesWireFormatZeroStructureSize() {
            byte[] buffer = new byte[1024];
            int bufferIndex = 0;
    
            // Set structure size to 0 (invalid)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/ArrayMap.java

         */
        public ArrayMap(final Map<? extends K, ? extends V> map) {
            this((int) (map.size() / LOAD_FACTOR) + 1);
            putAll(map);
        }
    
        @Override
        public int size() {
            return size;
        }
    
        @Override
        public boolean isEmpty() {
            return size == 0;
        }
    
        @Override
        public boolean containsValue(final Object value) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                // Negative values will be cast to unsigned when encoded
                assertEquals(4 + 2 * path.length(), buffer.size());
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeTests {
    
            @ParameterizedTest
            @DisplayName("Should calculate correct size for various path lengths")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

            }
    
            @Test
            @DisplayName("Size should be consistent across multiple calls")
            void testSizeConsistency() {
                int size1 = echoRequest.size();
                int size2 = echoRequest.size();
    
                assertEquals(size1, size2);
            }
    
            @Test
            @DisplayName("Size should be 72 bytes (64 header + 4 body aligned to 8)")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            String pipeName = "TestPipe";
            FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName);
    
            // Verify size calculation
            int expectedSize = 14 + pipeName.getBytes(StandardCharsets.UTF_16LE).length;
            assertEquals(expectedSize, request.size());
        }
    
        @Test
        @DisplayName("Test constructor with name and timeout sets correct fields")
        void testConstructorWithNameAndTimeout() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/InputValidator.java

            }
            if (size > maxSize) {
                throw new IllegalArgumentException(fieldName + " size exceeds maximum (" + maxSize + "): " + size);
            }
        }
    
        /**
         * Validates buffer size for SMB2/3
         *
         * @param size the buffer size to validate
         * @param fieldName the field name for error reporting
         * @throws IllegalArgumentException if size is invalid
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            when(mockFileInfo.size()).thenReturn(8);
    
            // Test encode
            int encoded = mockFileInfo.encode(dst, 0);
            assertEquals(8, encoded);
    
            // Test size
            int size = mockFileInfo.size();
            assertEquals(8, size);
    
            // Verify interactions
            verify(mockFileInfo).encode(dst, 0);
            verify(mockFileInfo).size();
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top