Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 75 for terminator (0.98 sec)

  1. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                buffer[serviceBytes.length] = 0; // Null terminator
    
                // When
                int bytesRead = (int) invokeMethod(response, "readBytesWireFormat", new Class[] { byte[].class, int.class }, buffer, 0);
    
                // Then
                assertEquals(serviceBytes.length + 1, bytesRead, "Should read service string plus terminator");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NtlmSspTest.java

            assertEquals('S', (char) type2Bytes[4]);
            assertEquals('S', (char) type2Bytes[5]);
            assertEquals('P', (char) type2Bytes[6]);
            assertEquals(0, type2Bytes[7]); // Null terminator
            assertEquals(2, type2Bytes[8], "Message type should be 2"); // Type 2
    
            // Verify response status
            verify(mockResponse).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  3. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                    assertNotNull(targetInfo);
                    // Should only contain server info - but might have different structure than expected
                    assertTrue(targetInfo.length >= 4, "Target info should have at least terminator");
                    // Check if it contains server info (implementation dependent)
                    if (targetInfo.length > 4) {
                        assertEquals(1, Type2Message.readUShort(targetInfo, 0)); // Type 0x0001
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            String testString = "Hello World";
            ndrBuffer.enc_ndr_string(testString);
    
            // Expected length: 4 (actual_count) + 4 (offset) + 4 (max_count) + len*2 (unicode) + 2 (null terminator)
            int expectedLength = 4 + 4 + 4 + (testString.length() * 2) + 2;
            assertEquals(expectedLength, ndrBuffer.getIndex());
            assertEquals(expectedLength, ndrBuffer.getLength());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            assertEquals('S', messageBytes[4]);
            assertEquals('S', messageBytes[5]);
            assertEquals('P', messageBytes[6]);
            assertEquals(0, messageBytes[7]); // Null terminator
        }
    
        @Test
        @DisplayName("Should include message type indicator")
        void testMessageTypeIndicator() throws Exception {
            // Given
            Type2Message type2 = createMockType2Message();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/ReferralTest.java

            // Write path string at offset 22
            bb.position(22);
            String expectedPath = "\\\\test";
            bb.put(expectedPath.getBytes(StandardCharsets.UTF_16LE));
            bb.putShort((short) 0); // null terminator
    
            // Decode
            referral.decode(testBuffer, 0, testBuffer.length);
    
            // Check
            assertEquals(3, referral.getVersion());
            assertEquals(100, referral.getSize());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            }
    
            @Override
            public void enc_ndr_string(String s) {
                // Simulate encoding a string
                offset += (s.length() * 2) + 4; // Length + null terminator + actual string
            }
        }
    
        // Test for LsarQosInfo
        @Test
        void testLsarQosInfoEncode() throws NdrException {
            lsarpc.LsarQosInfo qosInfo = new lsarpc.LsarQosInfo();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/UnicodeString.java

     * This class wraps strings for use in RPC calls with optional zero termination.
     */
    public class UnicodeString extends rpc.unicode_string {
    
        boolean zterm;
    
        /**
         * Constructs a UnicodeString with zero termination option.
         *
         * @param zterm whether the string should be zero terminated
         */
        public UnicodeString(final boolean zterm) {
            this.zterm = zterm;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

                    }
                }
                currentProcess = null;
    
            }
        }
    
        /**
         * Monitor thread that handles process timeout and termination.
         * This thread sleeps for the specified timeout duration and terminates the process if it hasn't finished.
         */
        protected static class MonitorThread extends Thread {
            /** The process to monitor. */
            private final Process process;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

                        logger.debug("Waiting for crawler termination: thread={}, timeout={}ms", parentThread.getName(), millis);
                    }
                    parentThread.join(millis);
                } catch (final InterruptedException e) {
                    logger.warn("Crawler thread was interrupted while waiting for termination: thread={}, sessionId={}", parentThread.getName(),
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 17K bytes
    - Viewed (0)
Back to top