Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for headerStart (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            Smb2SessionSetupResponse resp = newResponse();
    
            byte[] buf = new byte[256];
            int headerStart = 0;
            long expectedSessionId = 0x1122334455667788L;
            buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId);
    
            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 10, 20, 30, 40, 50 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Status
            SMBUtil.writeInt4(0, buffer, headerStart + 8);
            // Command (READ = 0x0008)
            SMBUtil.writeInt2(0x0008, buffer, headerStart + 12);
            // Credit request/response
            SMBUtil.writeInt2(1, buffer, headerStart + 14);
            // Flags
            SMBUtil.writeInt4(0, buffer, headerStart + 16);
            // Next command
            SMBUtil.writeInt4(0, buffer, headerStart + 20);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

                this.retainPayload = retain;
            }
    
            public byte[] getRawPayload() {
                return rawPayload;
            }
    
            // Expose headerStart for testing
            public int getHeaderStart() {
                return headerStart;
            }
        }
    
        /**
         * Test implementation of SmbComNTCreateAndXResponse for testing
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. 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));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

                System.arraycopy(buffer, bufferIndex, this.txn_buf, this.bufParameterStart + this.parameterDisplacement, this.parameterCount);
                bufferIndex += this.parameterCount;
            }
            if (this.dataCount > 0) {
                bufferIndex += this.pad1 = this.dataOffset - (bufferIndex - this.headerStart);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

            } else {
    
                /*
                 * Set bufferIndex according to andxOffset
                 */
    
                bufferIndex = headerStart + andxOffset;
    
                andx.headerStart = headerStart;
                andx.command = andxCommand;
                andx.errorCode = errorCode;
                andx.flags = flags;
                andx.flags2 = flags2;
                andx.tid = tid;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertArrayEquals(testFileId, Arrays.copyOfRange(buffer, headerStart + 16, headerStart + 32)); // File ID
                assertEquals(0, SMBUtil.readInt4(buffer, headerStart + 32)); // Channel
                assertEquals(500, SMBUtil.readInt4(buffer, headerStart + 36)); // Remaining bytes
                assertEquals(0, SMBUtil.readInt2(buffer, headerStart + 40)); // WriteChannelInfoOffset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

        void testWriteBytesWireFormat() throws Exception {
            // Given
            byte[] buffer = new byte[512];
            int headerStart = 50;
            int bodyOffset = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
    
            // Encode the full message to set headerStart
            request.encode(buffer, headerStart);
    
            // Then - verify the body was written correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

         * bufferIndex, and thus headerStart, would be 4).(NOTE: If one where
         * looking for a way to improve perfomance this is precisly what you
         * would want to do as the jcifs.smb1.netbios.SocketXxxputStream classes
         * arraycopy all data read or written into a new buffer shifted over 4!)
         */
    
        byte command, flags;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java

                bufferIndex += pad = parameterOffset - (bufferIndex - headerStart);
                System.arraycopy(buffer, bufferIndex, txn_buf, bufParameterStart + parameterDisplacement, parameterCount);
                bufferIndex += parameterCount;
            }
            if (dataCount > 0) {
                bufferIndex += pad1 = dataOffset - (bufferIndex - headerStart);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top