- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for byteCount (0.04 sec)
-
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
} this.byteCount = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; if (this.byteCount != 0) { int n = readBytesWireFormat(buffer, bufferIndex); if ((n != this.byteCount) && log.isTraceEnabled()) { log.trace("byteCount=" + this.byteCount + " but readBytesWireFormat 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) -
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
this.wordCount /= 2; dst[start] = (byte) (this.wordCount & 0xFF); this.byteCount = writeBytesWireFormat(dst, dstIndex + 2); dst[dstIndex] = (byte) (this.byteCount & 0xFF); dstIndex++; dst[dstIndex++] = (byte) (this.byteCount >> 8 & 0xFF); dstIndex += this.byteCount; /* * Normally, without intervention everything would batchRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
assertTrue(result.contains("byteCount=8")); assertTrue(result.contains("oemDomainName=TEST_DOMAIN")); } // Helper method to set protected byteCount field using reflection private void setByteCount(SmbComNegotiateResponse response, int byteCount) { try { Field field = response.getClass().getSuperclass().getDeclaredField("byteCount"); field.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
SMBUtil.writeInt2(83, buffer, 36); // andxOffset (33 + 50) SMBUtil.writeInt2(20, buffer, 42); // byteCount // Setup andx command data at offset 83 (absolute position from buffer start) buffer[83] = 2; // andx wordCount SMBUtil.writeInt2(10, buffer, 88); // andx byteCount int length = testBlock.decode(buffer, 0); assertTrue(length > 0);
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/smb1/AndXServerMessageBlock.java
wordCount /= 2; dst[start] = (byte) (wordCount & 0xFF); byteCount = writeBytesWireFormat(dst, dstIndex + 2); dst[dstIndex] = (byte) (byteCount & 0xFF); dstIndex++; dst[dstIndex++] = (byte) (byteCount >> 8 & 0xFF); dstIndex += byteCount; /* Normally, without intervention everything would batchRegistered: 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 wordCount * 2; } @Override int readBytesWireFormat(byte[] buffer, int bufferIndex) { System.arraycopy(buffer, bufferIndex, bytes, 0, byteCount); return byteCount; } } @BeforeEach void setUp() { smb = new TestServerMessageBlock(); } @Test void testInt2ReadWrite() { byte[] buffer = new byte[2];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/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
} bufferIndex += wordCount * 2; } byteCount = readInt2(buffer, bufferIndex); bufferIndex += 2; if (byteCount != 0) { int n = readBytesWireFormat(buffer, bufferIndex); if ((n != byteCount) && (LogStream.level >= 5)) { log.println("byteCount=" + byteCount + " but readBytesWireFormat 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/AndXServerMessageBlockTest.java
buf[1] = 0x66; // andxCommand ServerMessageBlock.writeInt2(50, buf, 3); // andxOffset ServerMessageBlock.writeInt2(20, buf, 9); // byteCount for main block // At offset 50, the implementation writes andx.wordCount (0) to buffer // Then reads byteCount at offset 51 ServerMessageBlock.writeInt2(20, buf, 51); int n = block.readAndXWireFormat(buf, 0); assertTrue(n > 0);
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/internal/smb2/ServerMessageBlock2.java
public int encode(final byte[] dst, int dstIndex) { final int start = this.headerStart = dstIndex; dstIndex += writeHeaderWireFormat(dst, dstIndex); this.byteCount = writeBytesWireFormat(dst, dstIndex); dstIndex += this.byteCount; dstIndex += pad8(dstIndex); this.length = dstIndex - start; int len = this.length; if (this.next != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0)