Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,602 for lengths (0.07 sec)

  1. docs/en/docs/features.md

    ### Validation { #validation }
    
    * Validation for most (or all?) Python **data types**, including:
        * JSON objects (`dict`).
        * JSON array (`list`) defining item types.
        * String (`str`) fields, defining min and max lengths.
        * Numbers (`int`, `float`) with min and max values, etc.
    
    * Validation for more exotic types, like:
        * URL.
        * Email.
        * UUID.
        * ...and others.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/StringsTest.java

                assertNotNull(utf16Bytes, "UTF-16LE bytes should not be null");
                assertTrue(utf8Bytes.length > 0, "UTF-8 bytes should not be empty");
                assertTrue(utf16Bytes.length > 0, "UTF-16LE bytes should not be empty");
                assertNotEquals(utf8Bytes.length, utf16Bytes.length, "Different encodings should produce different lengths");
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                byte[] actualPathBytes = new byte[expectedPathBytes.length];
                System.arraycopy(dst, 2, actualPathBytes, 0, expectedPathBytes.length);
                assertArrayEquals(expectedPathBytes, actualPathBytes);
    
                // Check null terminator at the end
                int nullTerminatorIndex = 2 + expectedPathBytes.length;
                assertEquals(0, dst[nullTerminatorIndex]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

                trans2QueryFSInfo.writeDataWireFormat(buffer, 0);
                trans2QueryFSInfo.readSetupWireFormat(buffer, 0, buffer.length);
                trans2QueryFSInfo.readParametersWireFormat(buffer, 0, buffer.length);
                trans2QueryFSInfo.readDataWireFormat(buffer, 0, buffer.length);
            }
    
            // Object should still be in valid state
            String result = trans2QueryFSInfo.toString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            int paramWritten = trans2SetFileInfo.writeParametersWireFormat(paramBuffer, 0);
            int dataWritten = trans2SetFileInfo.writeDataWireFormat(dataBuffer, 0);
    
            // Verify lengths
            assertEquals(2, setupWritten);
            assertEquals(6, paramWritten);
            assertEquals(56, dataWritten); // 50 + 6 padding
    
            // Verify setup content
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            }
    
            @ParameterizedTest
            @DisplayName("Should handle various read lengths")
            @ValueSource(ints = { 0, 1, 512, 1024, 4096, 65536, 1048576 })
            void testVariousReadLengths(int length) {
                assertDoesNotThrow(() -> request.setReadLength(length));
            }
    
            @ParameterizedTest
            @DisplayName("Should handle various offsets")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Verify path length
            assertEquals(pathBytes.length, SMBUtil.readInt2(buffer, bodyOffset + 6));
    
            // Verify path content
            byte[] actualPath = new byte[pathBytes.length];
            System.arraycopy(buffer, bodyOffset + 8, actualPath, 0, pathBytes.length);
            assertArrayEquals(pathBytes, actualPath);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // When
            boolean isError = response.isErrorResponseStatus();
    
            // Then
            assertFalse(isError);
        }
    
        @DisplayName("Should handle various data lengths")
        @ParameterizedTest
        @CsvSource({ "0, 0", "1, 10", "100, 200", "512, 1024" })
        void testReadBytesWireFormatVariousDataLengths(int dataLength, int dataRemaining) throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        }
    
        @Test
        @DisplayName("length(): delegates to SmbFile.length()")
        void length_delegates() throws Exception {
            SmbRandomAccessFile raf = newInstance("r", false, false, false);
            SmbFile file = (SmbFile) getField(raf, "file");
            when(file.length()).thenReturn(42L);
            assertEquals(42L, raf.length());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Equivalence.java

       * Equivalence}.
       *
       * <p>For example, given an {@link Equivalence} for {@link String strings} named {@code equiv}
       * that tests equivalence using their lengths:
       *
       * {@snippet :
       * equiv.wrap("a").equals(equiv.wrap("b")) // true
       * equiv.wrap("a").equals(equiv.wrap("hello")) // false
       * }
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 01:47:55 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top