- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 29 for headerStart (0.11 sec)
-
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// Given request.setSessionBinding(true); byte[] buffer = new byte[512]; int headerStart = 50; // Encode the full message to set headerStart request.encode(buffer, headerStart); // Then - verify the body was written correctly int bodyOffset = headerStart + Smb2Constants.SMB2_HEADER_LENGTH; // Verify structure size (25)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
} else { /* * Set bufferIndex according to andxOffset */ bufferIndex = this.headerStart + this.andxOffset; this.andx.headerStart = this.headerStart; this.andx.setCommand(this.andxCommand); this.andx.setErrorCode(getErrorCode()); this.andx.setFlags(getFlags());
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/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
SMBUtil.writeInt4(8, buffer, bufferIndex + 4); response = spy(response); when(response.getHeaderStart()).thenReturn(headerStart); // Write FileInternalInfo data at calculated offset (headerStart + bufferOffset) SMBUtil.writeInt8(0xFEDCBA9876543210L, buffer, headerStart + 300); int result = response.readBytesWireFormat(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
return this.errorContextCount; } /** * Gets the header start position for this message. * * @return the headerStart */ public final int getHeaderStart() { return this.headerStart; } /** * Gets the total length of this message. * * @return the length */ public final int getLength() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
@Test @DisplayName("readAndXWireFormat applies Snap server workaround (offset 0)") void testReadAndXWireFormatSnapWorkaround() { DummyAndXBlock block = new DummyAndXBlock(); block.headerStart = 0; byte[] buf = new byte[64]; buf[0] = 4; // wordCount buf[1] = 0x42; // andxCommand // andxOffset = 0 triggers workaround -> treat as no andx
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/smb1/trans/SmbComTransaction.java
System.arraycopy(this.txn_buf, this.bufParameterOffset, dst, this.headerStart + this.parameterOffset, this.parameterCount); end = Math.max(end, this.headerStart + this.parameterOffset + this.parameterCount + this.pad2); } if (this.dataCount > 0) { System.arraycopy(this.txn_buf, this.bufDataOffset, dst, this.headerStart + this.dataOffset, this.dataCount);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java
} @Override int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dataOffset = dstIndex - headerStart + 26; // 26 = off from here to pad pad = (dataOffset - headerStart) % 4; pad = pad == 0 ? 0 : 4 - pad; dataOffset += pad; writeInt2(fid, dst, dstIndex); dstIndex += 2; writeInt4(offset, dst, dstIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWriteAndX.java
protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; this.dataOffset = dstIndex - this.headerStart + 26; // 26 = off from here to pad this.pad = (this.dataOffset - this.headerStart) % 4; this.pad = this.pad == 0 ? 0 : 4 - this.pad; this.dataOffset += this.pad; SMBUtil.writeInt2(this.fid, dst, dstIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComNtTransaction.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb1.smb1; abstract class SmbComNtTransaction extends SmbComTransaction { // relative to headerStart private static final int NTT_PRIMARY_SETUP_OFFSET = 69; private static final int NTT_SECONDARY_PARAMETER_OFFSET = 51; static final int NT_TRANSACT_QUERY_SECURITY_DESC = 6; int function;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
if (this.digest != null) { this.digest.sign(dst, this.headerStart, this.length, this, this.response); } return this.length; } @Override public int decode(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException { final int start = this.headerStart = bufferIndex; bufferIndex += readHeaderWireFormat(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0)