- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testReadWireFormat (0.08 seconds)
-
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 = 10Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.5K bytes - Click Count (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)); // opCodeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.9K bytes - Click Count (0)