Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 70 for terminator (1.6 sec)

  1. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

                buf.enc_ndr_long(charCount + 1); // MaximumCount (including null terminator)
                buf.enc_ndr_long(0); // Offset
                buf.enc_ndr_long(charCount + 1); // ActualCount (including null terminator)
    
                // String data in UTF-16LE
                buf.writeOctetArray(wideBytes, 0, wideBytes.length);
                buf.enc_ndr_short(0); // Wide null terminator
    
                // Pad to 4-byte boundary
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
                assertNotNull(buffer);
                assertEquals(4, buffer.size()); // 2 bytes for level + 2 bytes for null terminator
            }
    
            @Test
            @DisplayName("Should create buffer with null path")
            void testConstructorWithNullPath() {
                String path = null;
                int maxReferralLevel = 2;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            smb.useUnicode = false;
            byte[] buffer = new byte[6];
            System.arraycopy("short".getBytes(), 0, buffer, 0, 5);
            buffer[5] = 0; // Null terminator
            String result = smb.readString(buffer, 0, 5, false);
            assertEquals("short", result);
        }
    
        @Test
        void testReadStringWithMaxLengthExceeded() {
            smb.useUnicode = false;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

            buffer[10 + stringBytes.length] = 0; // null terminator
    
            // Use reflection to call protected readString method
            Method readStringMethod = getReadStringMethod();
            String result = (String) readStringMethod.invoke(response, buffer, 10, 128, false);
    
            assertEquals(testString, result);
        }
    
        @Test
        @DisplayName("Test readString with null terminator in middle")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

                return "";
            }
    
            // Read wide string data (UTF-16LE)
            int byteCount = (actualCount - 1) * 2; // Exclude null terminator
            byte[] wideBytes = new byte[byteCount];
            buf.readOctetArray(wideBytes, 0, byteCount);
    
            // Skip null terminator
            buf.dec_ndr_short();
    
            // Skip padding
            int padding = (4 - ((byteCount + 2) % 4)) % 4;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/Type1MessageTest.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 IOException {
            // When
            Type1Message type1 = new Type1Message(mockContext);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top