- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for wordCount (0.04 sec)
-
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
buffer[33] = 34; // wordCount for extended response buffer[34] = (byte) 0xFF; // andxCommand SMBUtil.writeInt2(20, buffer, 102); // byteCount int length = testBlock.decode(buffer, 0); assertTrue(length > 0); // wordCount is set to 34 + 8 = 42 in the implementation for extended response assertEquals(42, testBlock.wordCount); // Should be 34 + 8 = 42 }
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/internal/smb1/AndXServerMessageBlock.java
final int start = dstIndex; this.wordCount = writeParameterWordsWireFormat(dst, start + ANDX_OFFSET_OFFSET + 2); this.wordCount += 4; // for command, reserved, and offset dstIndex += this.wordCount + 1; this.wordCount /= 2; dst[start] = (byte) (this.wordCount & 0xFF); this.byteCount = writeBytesWireFormat(dst, dstIndex + 2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java
int writeAndXWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; wordCount = writeParameterWordsWireFormat(dst, start + ANDX_OFFSET_OFFSET + 2); wordCount += 4; // for command, reserved, and offset dstIndex += wordCount + 1; wordCount /= 2; dst[start] = (byte) (wordCount & 0xFF); byteCount = writeBytesWireFormat(dst, dstIndex + 2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
return bytes.length; } @Override int readParameterWordsWireFormat(byte[] buffer, int bufferIndex) { System.arraycopy(buffer, bufferIndex, paramWords, 0, wordCount * 2); return wordCount * 2; } @Override int readBytesWireFormat(byte[] buffer, int bufferIndex) { System.arraycopy(buffer, bufferIndex, bytes, 0, byteCount);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
// The implementation uses andx.wordCount, which starts at 0 by default // We need to test the actual behavior where wordCount is 0 // This means readParameterWordsWireFormat won't be called (line 282-284) DummyAndXBlock block = new DummyAndXBlock(next); block.headerStart = 0; byte[] buf = new byte[256]; buf[0] = 4; // wordCount for main block
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
bufferIndex += readHeaderWireFormat(buffer, bufferIndex); wordCount = buffer[bufferIndex]; bufferIndex++; if (wordCount != 0) { int n = readParameterWordsWireFormat(buffer, bufferIndex); if ((n != wordCount * 2) && (LogStream.level >= 5)) { log.println("wordCount * 2=" + wordCount * 2 + " but readParameterWordsWireFormat returned " + n); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
String result = smbComNegotiate.toString(); assertTrue(result.startsWith("SmbComNegotiate["), "String should start with SmbComNegotiate["); assertTrue(result.contains("wordCount=0"), "String should contain wordCount=0"); assertTrue(result.contains("dialects=NT LM 0.12]"), "String should contain dialects=NT LM 0.12]"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
} @Test void testReadParameterWordsWireFormatWithZeroWordCount() { // Test reading when wordCount is 0 response = new SmbComQueryInformationResponse(mockConfig, 0L); // Set wordCount to 0 setFieldValue(response, "wordCount", 0); byte[] buffer = new byte[256]; int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java
return 0; } @Override public String toString() { return ("SmbComNegotiate[" + super.toString() + ",wordCount=" + this.wordCount + ",dialects=NT LM 0.12]"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
this.wordCount = buffer[bufferIndex]; bufferIndex++; if (this.wordCount != 0) { int n = readParameterWordsWireFormat(buffer, bufferIndex); if ((n != this.wordCount * 2) && log.isTraceEnabled()) { log.trace("wordCount * 2=" + this.wordCount * 2 + " but readParameterWordsWireFormat returned " + n); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0)