Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 161 for shorter (0.17 sec)

  1. src/test/java/jcifs/smb/SecurityBlobTest.java

        }
    
        // Demonstrates observed equals() asymmetry when this is shorter than argument
        @Test
        @DisplayName("equals: this shorter but same prefix -> true (observed behavior)")
        void equals_thisShorterSamePrefix_true_dueToImplementation() {
            // Arrange: left shorter than right but with identical prefix
            SecurityBlob shorter = new SecurityBlob(new byte[] { 1, 2 });
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

            assertFalse(registration.isExpired(60000));
    
            // Wait a bit to ensure some time has passed
            Thread.sleep(50);
            // Should be expired with very short timeout (shorter than sleep time)
            assertTrue(registration.isExpired(10));
        }
    
        @Test
        void testStateTransitions() {
            assertEquals(WitnessRegistrationState.REGISTERING, registration.getState());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/UniAddress.java

                        dots++;
                        i++;
                    }
                }
            }
    
            return false;
        }
    
        /**
         * Perform DNS SRV lookup on successively shorter suffixes of name
         * and return successful suffix or throw an UnknownHostException.
         * import javax.naming.*;
         * import javax.naming.directory.*;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertArrayEquals(Arrays.copyOfRange(longFileId, 0, 16), Arrays.copyOfRange(buffer, 16, 32));
            }
    
            @Test
            @DisplayName("Should handle file ID shorter than 16 bytes")
            void testShortFileId() {
                byte[] shortFileId = new byte[8];
                Arrays.fill(shortFileId, (byte) 0xAB);
                request.setFileId(shortFileId);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/UniAddress.java

                    // Failure
                }
            }
            throw new UnknownHostException(hostname);
        }
    
        /**
         * Perform DNS SRV lookup on successively shorter suffixes of name
         * and return successful suffix or throw an UnknownHostException.
        import javax.naming.*;
        import javax.naming.directory.*;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                assertThrows(NullPointerException.class, () -> req.size());
            }
    
            @Test
            @DisplayName("Should handle file ID shorter than 16 bytes")
            void testShortFileId() {
                byte[] shortFileId = new byte[8];
                Arrays.fill(shortFileId, (byte) 0xAB);
                request.setFileId(shortFileId);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                assertEquals(1024, SMBUtil.readInt4(buffer, 4));
                assertEquals(2048, SMBUtil.readInt4(buffer, 32));
            }
    
            @Test
            @DisplayName("Should handle file ID shorter than 16 bytes")
            void testShortFileId() {
                byte[] shortFileId = new byte[8];
                Arrays.fill(shortFileId, (byte) 0xAB);
                request.setFileId(shortFileId);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
Back to top