Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 186 for 0x15 (0.02 sec)

  1. src/test/java/jcifs/dcerpc/rpcTest.java

                originalUuid.clock_seq_hi_and_reserved = (byte) 0x99;
                originalUuid.clock_seq_low = (byte) 0x88;
                originalUuid.node = new byte[] { (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66 };
    
                // Mock encoding buffer
                NdrBuffer encodeBuffer = mock(NdrBuffer.class);
                when(encodeBuffer.derive(anyInt())).thenReturn(encodeBuffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java

            // create a buffer with count = 0x1234 (4660 decimal)
            // Using little-endian byte order as per SMBUtil.readInt2
            byte[] buf = new byte[12];
            buf[0] = 0x34; // Low byte
            buf[1] = 0x12; // High byte
            int written = resp.readParameterWordsWireFormat(buf, 0);
    
            assertEquals(8, written, "Expected readParameterWordsWireFormat to advance 8 bytes");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                byte[] testContext =
                        new byte[] { (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66, (byte) 0x77, (byte) 0x88 };
                message.setContext(testContext);
                byte[] testTargetInfo = new byte[] { 0x10, 0x20, 0x30 };
                message.setTargetInformation(testTargetInfo);
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameServicePacketTest.java

            NameServicePacket.writeInt2(0x1234, dst, 0);
            assertEquals((byte) 0x12, dst[0]);
            assertEquals((byte) 0x34, dst[1]);
        }
    
        @Test
        void testWriteInt4() {
            byte[] dst = new byte[4];
            NameServicePacket.writeInt4(0x12345678, dst, 0);
            assertEquals((byte) 0x12, dst[0]);
            assertEquals((byte) 0x34, dst[1]);
            assertEquals((byte) 0x56, dst[2]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

            return java.util.stream.Stream.of(Arguments.of(0x00000000, new byte[] { 0x00, 0x00, 0x00, 0x00 }),
                    Arguments.of(0x12345678, new byte[] { 0x78, 0x56, 0x34, 0x12 }),
                    Arguments.of(0xFFFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }),
                    Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F }));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            // numEntries (2 bytes)
            buffer[2] = 0x05;
            buffer[3] = 0x00;
            // isEndOfSearch (2 bytes, bit 0 of first byte)
            buffer[4] = 0x01; // end of search = true
            buffer[5] = 0x00;
            // eaErrorOffset (2 bytes)
            buffer[6] = 0x00;
            buffer[7] = 0x00;
            // lastNameOffset (2 bytes)
            buffer[8] = 0x10;
            buffer[9] = 0x00;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

        private Smb2LeaseKey testKey;
        private int testState;
    
        @BeforeEach
        void setUp() {
            byte[] keyBytes = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 };
            testKey = new Smb2LeaseKey(keyBytes);
            testState = Smb2LeaseState.SMB2_LEASE_READ_WRITE;
            leaseContext = new LeaseV1CreateContextRequest(testKey, testState);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/SmbNegotiationTest.java

        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            testRequestBuffer = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            testResponseBuffer = new byte[] { 0x05, 0x06, 0x07, 0x08 };
            negotiation = new SmbNegotiation(mockRequest, mockResponse, testRequestBuffer, testResponseBuffer);
        }
    
        @Test
        @DisplayName("Constructor should properly initialize all fields")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            // First decode
            byte[] buffer1 = new byte[28];
            Arrays.fill(buffer1, 0, 24, (byte) 0x11);
    
            int bytesConsumed1 = response.decode(buffer1, 0, 28);
            assertEquals(28, bytesConsumed1);
    
            byte[] resumeKey1 = response.getResumeKey();
            assertNotNull(resumeKey1);
            assertEquals((byte) 0x11, resumeKey1[0]);
    
            // Second decode - should overwrite
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/NetbiosNameTest.java

            // 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
            when(mockNetbiosName.getNameType()).thenReturn(nameType);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top