Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testWriteInt4 (0.22 sec)

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

            // Test with offset
            SMBUtil.writeInt2(0xABCD, dst, 6);
            assertEquals((byte) 0xCD, dst[6]);
            assertEquals((byte) 0xAB, dst[7]);
        }
    
        @Test
        void testWriteInt4() {
            byte[] dst = new byte[12];
    
            // Test with simple value
            SMBUtil.writeInt4(0x12345678L, dst, 0);
            assertEquals((byte) 0x78, dst[0]);
            assertEquals((byte) 0x56, dst[1]);
    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

            assertEquals((byte) 0xAB, dst[4]);
            assertEquals((byte) 0xCD, dst[5]);
        }
    
        @Test
        @DisplayName("writeInt4 should correctly write 32-bit integer")
        void testWriteInt4() {
            byte[] dst = new byte[8];
            SessionServicePacket.writeInt4(0x12345678, dst, 0);
    
            assertEquals((byte) 0x12, dst[0]);
            assertEquals((byte) 0x34, dst[1]);
    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

            byte[] dst = new byte[2];
            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]);
    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