- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for writeWireFormat (0.19 sec)
-
src/main/java/jcifs/netbios/SessionRequestPacket.java
} @Override int writeTrailerWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dstIndex += this.calledName.writeWireFormat(dst, dstIndex); dstIndex += this.callingName.writeWireFormat(dst, dstIndex); return dstIndex - start; } @Override int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java
} @Override int writeTrailerWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dstIndex += calledName.writeWireFormat(dst, dstIndex); dstIndex += callingName.writeWireFormat(dst, dstIndex); return dstIndex - start; } @Override int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
packet.questionClass = NameServicePacket.IN; when(mockQuestionName.writeWireFormat(any(byte[].class), anyInt())).thenReturn(10); // Mock name length int written = packet.writeQuestionSectionWireFormat(dst, 0); assertEquals(14, written); // 10 (name) + 2 (type) + 2 (class) verify(mockQuestionName).writeWireFormat(dst, 0); assertEquals((byte) 0x00, dst[10]); // questionType high byte
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServicePacket.java
this.config = config; this.isRecurDesired = true; this.isBroadcast = true; this.questionCount = 1; this.questionClass = IN; } int writeWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dstIndex += writeHeaderWireFormat(dst, dstIndex); dstIndex += writeBodyWireFormat(dst, dstIndex); return dstIndex - start;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServicePacket.java
InetAddress addr; NameServicePacket() { isRecurDesired = true; isBroadcast = true; questionCount = 1; questionClass = IN; } int writeWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dstIndex += writeHeaderWireFormat(dst, dstIndex); dstIndex += writeBodyWireFormat(dst, dstIndex); return dstIndex - start;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
// Tests for instance methods @Test @DisplayName("writeWireFormat should write header and trailer") void testWriteWireFormat() { packet.type = SessionServicePacket.SESSION_MESSAGE; packet.trailerLength = 10; // Mock trailer will write 10 bytes byte[] dst = new byte[50]; int totalWritten = packet.writeWireFormat(dst, 0); assertEquals(14, totalWritten); // 4 header + 10 trailer
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/main/java/jcifs/netbios/SessionServicePacket.java
* * @param dst the destination byte array to write to * @param dstIndex the starting index in the destination array * @return written bytes */ public int writeWireFormat(final byte[] dst, final int dstIndex) { this.length = writeTrailerWireFormat(dst, dstIndex + HEADER_LENGTH); writeHeaderWireFormat(dst, dstIndex); return HEADER_LENGTH + this.length; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
lenient().when(mockConfig.getNetbiosScope()).thenReturn("DEFAULT.SCOPE"); lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); // Setup mock name lenient().when(mockName.writeWireFormat(any(byte[].class), anyInt())).thenReturn(34); mockName.hexCode = 0x20; mockName.name = "TEST"; mockName.scope = "test.scope"; } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameTest.java
} @Test void writeWireFormat_shouldEncodeNameCorrectly() { Name name = new Name(mockConfig, "TEST", 0x20, null); byte[] dst = new byte[100]; int length = name.writeWireFormat(dst, 0); // Check first byte is 0x20 assertEquals(0x20, dst[0]); // Check encoded name (TEST -> encoded as pairs)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SessionServicePacket.java
* * @param dst the destination byte array to write to * @param dstIndex the starting index in the destination array * @return the number of bytes written */ public int writeWireFormat(final byte[] dst, final int dstIndex) { length = writeTrailerWireFormat(dst, dstIndex + HEADER_LENGTH); writeHeaderWireFormat(dst, dstIndex); return HEADER_LENGTH + length; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0)