- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testReadHeaderWireFormat (1.32 sec)
-
src/test/java/jcifs/netbios/SessionServicePacketTest.java
assertEquals((byte) 0x01, dst[1]); // Extended bit set } @Test @DisplayName("readHeaderWireFormat should parse header correctly") void testReadHeaderWireFormat() { byte[] buffer = { (byte) 0x82, (byte) 0x00, (byte) 0x00, (byte) 0x20 }; ByteArrayInputStream bais = new ByteArrayInputStream(buffer);
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
assertEquals((byte) 0x03, dst[9]); assertEquals((byte) 0x00, dst[10]); // additionalCount assertEquals((byte) 0x04, dst[11]); } @Test void testReadHeaderWireFormat() { byte[] src = new byte[NameServicePacket.HEADER_LENGTH]; NameServicePacket.writeInt2(0x1234, src, 0); src[2] = (byte) (0x80 | (NameServicePacket.QUERY << 3) | 0x04 | 0x02 | 0x01);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0)