- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testReadWireFormat (0.06 sec)
-
src/test/java/jcifs/netbios/SessionServicePacketTest.java
assertEquals((byte) 0x01, dst[1]); // Extended length bit should be set } @Test @DisplayName("readWireFormat should read header and trailer") void testReadWireFormat() throws IOException { byte[] data = new byte[50]; data[0] = (byte) 0x85; // SESSION_KEEP_ALIVE data[1] = 0x00; data[2] = 0x00; data[3] = 0x0A; // Length = 10
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
int written = packet.writeWireFormat(dst, 0); // HEADER_LENGTH (12) + writeBodyWireFormat (0) = 12 assertEquals(12, written); } @Test void testReadWireFormat() { byte[] src = new byte[50]; NameServicePacket.writeInt2(0x1234, src, 0); // nameTrnId src[2] = (byte) (0x00 | (NameServicePacket.QUERY << 3)); // opCode
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0)