- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testReadInt4 (0.1 sec)
-
src/test/java/jcifs/internal/util/SMBUtilTest.java
assertEquals(0xFFFF, SMBUtil.readInt2(src, 2)); assertEquals(0x0000, SMBUtil.readInt2(src, 4)); assertEquals(0xABCD, SMBUtil.readInt2(src, 6)); } @Test void testReadInt4() { byte[] src = new byte[] { (byte) 0x78, (byte) 0x56, (byte) 0x34, (byte) 0x12, // 0x12345678 (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, // 0xFFFFFFFF
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
int result = SessionServicePacket.readInt2(src, 2); assertEquals(0xABCD, result); } @Test @DisplayName("readInt4 should correctly read 32-bit integer") void testReadInt4() { byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 }; int result = SessionServicePacket.readInt4(src, 0); assertEquals(0x12345678, 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) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
} @Test void testReadInt2() { byte[] src = { (byte) 0x12, (byte) 0x34 }; assertEquals(0x1234, NameServicePacket.readInt2(src, 0)); } @Test void testReadInt4() { byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 }; assertEquals(0x12345678, NameServicePacket.readInt4(src, 0)); } @Test void testReadNameTrnId() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0)