Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 191 for Ints (0.02 sec)

  1. src/test/java/jcifs/NetbiosNameTest.java

            int nameType = mockNetbiosName.getNameType();
    
            // Then
            assertEquals(testType, nameType);
            verify(mockNetbiosName).getNameType();
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0x00, 0x03, 0x06, 0x1B, 0x1C, 0x1D, 0x1E, 0x20 })
        @DisplayName("Should handle various NetBIOS name types")
        void testVariousNameTypes(int nameType) {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            assertEquals(1, SMBUtil.readInt2(buffer, 10));
        }
    
        /**
         * Test that a large file lock (bit 0x10 set) is encoded and decoded correctly.
         */
        @ParameterizedTest
        @ValueSource(ints = { 0x10, 0x11 })
        void largeFileFlagSet_and_decoded_according_to_type(int type) throws Exception {
            Configuration cfg = mock(Configuration.class);
            SmbComLockingAndX cmd = new SmbComLockingAndX(cfg);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            assertEquals("Payload exceeds buffer size", exception.getMessage());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 100, 500, 1024 })
        void testReadDataWireFormatVariousSizes(int dataSize) throws SMBProtocolDecodingException {
            // Test with various data sizes within buffer limit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/WinErrorTest.java

            // Valid inputs: each known code must map to its documented message
            assertEquals(expectedMessage, lookupMessage(code).orElse(null));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { -1, Integer.MIN_VALUE, Integer.MAX_VALUE })
        @DisplayName("Unknown codes: lookup returns empty Optional")
        void lookup_returns_empty_for_unknown_codes(int unknownCode) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/DES.java

                0x00001040, 0x00001040, 0x00040040, 0x10000000, 0x10041000 };
    
        /// Squash bytes down to ints.
        /**
         * Converts bytes to integers for internal DES processing
         * @param inBytes the input byte array
         * @param inOff the offset into the input array
         * @param outInts the output integer array
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Then
            assertEquals(0, bytesWritten);
        }
    
        @DisplayName("Should write zero bytes at various offsets")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 50, 100, 255 })
        void testWriteBytesWireFormatAtDifferentOffsets(int offset) {
            // Given
            byte[] buffer = new byte[256];
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Crc32cHashFunction.java

         * CRC(A000A000A000...), CRC(0B000B000B...), CRC(00C000C000C...), CRC(000D000D000D...)
         * and then to XOR them together.  The strideTable enables us to hash an int followed by 12
         * zero bytes (3 ints), while the byteTable is for advancing one byte at a time.
         * This algorithm is due to the paper "Everything we know about CRC but [are] afraid to forget"
         * by Kadatch and Jenkins, 2010.
         */
    
        Crc32cHasher() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        } else {
          return next >>> 1;
        }
      }
    
      public void testCrc32cStrideTable() {
        int next = CRC32C_GENERATOR_FLIPPED;
        for (int i = 0; i < 12; i++) { // for 3 ints = 12 bytes in between each stride window
          next = (next >>> 8) ^ Crc32cHashFunction.Crc32cHasher.byteTable[next & 0xFF];
        }
        int[][] expected = new int[4][256];
        for (int b = 0; b < 4; ++b) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary");
            }
    
            @ParameterizedTest
            @DisplayName("Should calculate size for various lock counts")
            @ValueSource(ints = { 0, 1, 2, 5, 10, 20, 50, 100 })
            void testSizeWithVariousLockCounts(int lockCount) {
                Smb2Lock[] locks = new Smb2Lock[lockCount];
                for (int i = 0; i < lockCount; i++) {
    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. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                    buffer.size();
                });
            }
    
            @ParameterizedTest
            @DisplayName("Should handle various referral levels")
            @ValueSource(ints = { 0, 1, 2, 3, 4, 5, 255, 256, 32767, 65535 })
            void testConstructorWithVariousReferralLevels(int maxReferralLevel) {
                String path = "\\\\test";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
Back to top