Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testReadInt2 (0.13 sec)

  1. src/test/java/jcifs/internal/util/SMBUtilTest.java

            assertEquals((byte) 0x00, dst[8]);
            assertEquals((byte) 0x00, dst[9]);
            assertEquals((byte) 0x00, dst[10]);
            assertEquals((byte) 0x00, dst[11]);
        }
    
        @Test
        void testReadInt2() {
            byte[] src = new byte[] { (byte) 0x34, (byte) 0x12, // 0x1234
                    (byte) 0xFF, (byte) 0xFF, // 0xFFFF
                    (byte) 0x00, (byte) 0x00, // 0x0000
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/SessionServicePacketTest.java

                    Arguments.of(0x7FFFFFFF), Arguments.of(0xFFFFFFFF));
        }
    
        @Test
        @DisplayName("readInt2 should correctly read 16-bit integer")
        void testReadInt2() {
            byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56 };
            int result = SessionServicePacket.readInt2(src, 0);
    
            assertEquals(0x1234, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameServicePacketTest.java

            assertEquals((byte) 0x12, dst[0]);
            assertEquals((byte) 0x34, dst[1]);
            assertEquals((byte) 0x56, dst[2]);
            assertEquals((byte) 0x78, dst[3]);
        }
    
        @Test
        void testReadInt2() {
            byte[] src = { (byte) 0x12, (byte) 0x34 };
            assertEquals(0x1234, NameServicePacket.readInt2(src, 0));
        }
    
        @Test
        void testReadInt4() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top