- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 30 for headerStart (0.38 seconds)
-
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.5K bytes - Click Count (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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
private void setHeaderStart(Smb2ChangeNotifyResponse response, int headerStart) throws Exception { Method method = ServerMessageBlock2.class.getDeclaredMethod("getHeaderStart"); method.setAccessible(true); Field field = ServerMessageBlock2.class.getDeclaredField("headerStart"); field.setAccessible(true); field.setInt(response, headerStart); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
d.parameterDisplacement = 0; d.dataCount = 4; // Current data count matches total d.dataOffset = 10; // Absolute offset in the SMB message d.dataDisplacement = 0; d.headerStart = 0; // Set headerStart (bufferIndex will be 0) // Prepare buffer with test data byte[] buf = new byte[100]; for (int i = 0; i < buf.length; i++) { buf[i] = (byte) ('A' + (i % 26));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransaction.java
* such as security descriptor queries and file change notifications. */ public abstract class SmbComNtTransaction extends SmbComTransaction { // relative to headerStart private static final int NTT_PRIMARY_SETUP_OFFSET = 71; private static final int NTT_SECONDARY_PARAMETER_OFFSET = 51; /** * NT transaction function code for querying security descriptors.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java
// For Unicode: 1 byte (initial null in writeBytesWireFormat) // + potential 1 byte alignment (in writeString) + fileName.length() * 2 + 2 bytes (terminating nulls) // Since headerStart is 0 and dstIndex starts at 1 (after initial null), (1-0)%2=1, so alignment byte added // Total: 1 + 1 + 12*2 + 2 = 28 bytes byte[] dst = new byte[30]; // Use extra buffer space to avoid index errors
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.6K bytes - Click Count (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() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 24K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
smb.useUnicode = true; smb.headerStart = 1; // Make the start odd String testString = "Aligned Unicode"; byte[] buffer = new byte[testString.length() * 2 + 2 + 1]; // +1 for alignment int len = smb.writeString(testString, buffer, 1); // When dstIndex=1 and headerStart=1, (1-1)%2=0, no alignment padding neededCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransaction.java
private static final int DEFAULT_MAX_DATA_COUNT = Config.getInt("jcifs.smb1.smb.client.transaction_buf_size", SmbComTransaction.TRANSACTION_BUF_SIZE) - 512; // relative to headerStart private static final int PRIMARY_SETUP_OFFSET = 61; private static final int SECONDARY_PARAMETER_OFFSET = 51; private static final int DISCONNECT_TID = 0x01;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.4K bytes - Click Count (0)