Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for headerStart (3.77 sec)

  1. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  6. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  7. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  9. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. 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 needed
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top