- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for writeBodyWireFormat (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/smb1/netbios/NodeStatusRequest.java
NodeStatusRequest(final Name name) { questionName = name; questionType = NBSTAT; isRecurDesired = false; isBroadcast = false; } @Override int writeBodyWireFormat(final byte[] dst, final int dstIndex) { final int tmp = questionName.hexCode; questionName.hexCode = 0x00; // type has to be 0x00 for node statusCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.8K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NodeStatusRequest.java
super(cfg); this.questionName = name; this.questionType = NBSTAT; this.isRecurDesired = false; this.isBroadcast = false; } @Override int writeBodyWireFormat(final byte[] dst, final int dstIndex) { final int tmp = this.questionName.hexCode; this.questionName.hexCode = 0x00; // type has to be 0x00 for node status
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.9K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NameQueryRequest.java
NameQueryRequest(final Configuration config, final Name name) { super(config); this.questionName = name; this.questionType = NB; } @Override int writeBodyWireFormat(final byte[] dst, final int dstIndex) { return writeQuestionSectionWireFormat(dst, dstIndex); } @Override int readBodyWireFormat(final byte[] src, final int srcIndex) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.7K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NameQueryRequestTest.java
assertEquals(mockName, request.questionName); assertEquals(NameServicePacket.NB, request.questionType); } @Test void testWriteBodyWireFormat() { // Test that writeBodyWireFormat calls writeQuestionSectionWireFormat NameQueryRequest request = spy(new NameQueryRequest(mockConfig, mockName)); byte[] dst = new byte[100]; int dstIndex = 0;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/NameQueryResponse.java
*/ package jcifs.smb1.netbios; class NameQueryResponse extends NameServicePacket { NameQueryResponse() { recordName = new Name(); } @Override int writeBodyWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readBodyWireFormat(final byte[] src, final int srcIndex) { return readResourceRecordWireFormat(src, srcIndex); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NodeStatusResponse.java
super(cfg); this.queryAddress = queryAddress; this.recordName = new Name(cfg); this.macAddress = new byte[6]; } @Override int writeBodyWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readBodyWireFormat(final byte[] src, final int srcIndex) { return readResourceRecordWireFormat(src, srcIndex); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.8K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NameQueryResponse.java
class NameQueryResponse extends NameServicePacket { NameQueryResponse(final Configuration config) { super(config); this.recordName = new Name(config); } @Override int writeBodyWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readBodyWireFormat(final byte[] src, final int srcIndex) { return readResourceRecordWireFormat(src, srcIndex); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
private static class TestNameServicePacket extends NameServicePacket { public TestNameServicePacket(Configuration config) { super(config); } @Override int writeBodyWireFormat(byte[] dst, int dstIndex) { // For testing purposes, we can return a fixed length or mock behavior return 0; } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.9K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
byte[] dst = new byte[200]; // Act int result1 = nodeStatusRequest.writeBodyWireFormat(dst, 0); int result2 = nodeStatusRequest.writeBodyWireFormat(dst, 50); int result3 = nodeStatusRequest.writeBodyWireFormat(dst, 100); // Assert assertEquals(result1, result2); assertEquals(result2, result3);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
assertNotNull(macAddress); assertEquals(6, macAddress.length); } @Test void writeBodyWireFormat_shouldReturnZero() { byte[] dst = new byte[100]; int result = response.writeBodyWireFormat(dst, 10); assertEquals(0, result); } @Test void readBodyWireFormat_shouldDelegateToReadResourceRecordWireFormat() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.3K bytes - Click Count (0)