Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testWriteReadInt4RoundTrip (0.53 sec)

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

            assertEquals(expected & 0xFFFF, result);
        }
    
        @ParameterizedTest
        @ValueSource(longs = { 0L, 1L, 0xFFFFFFFFL, 0x12345678L, 0x80000000L })
        void testWriteReadInt4RoundTrip(long input) {
            byte[] buffer = new byte[8];
            SMBUtil.writeInt4(input, buffer, 0);
            int result = SMBUtil.readInt4(buffer, 0);
            assertEquals((int) (input & 0xFFFFFFFFL), result);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top