Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for bufferIndex (0.06 sec)

  1. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            bufferIndex += 4;
            this.status = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.command = SMBUtil.readInt2(buffer, bufferIndex);
            this.credit = SMBUtil.readInt2(buffer, bufferIndex + 2);
            bufferIndex += 4;
    
            this.flags = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.nextCommand = SMBUtil.readInt4(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

         */
    
        @Override
        public int decode(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = this.headerStart = bufferIndex;
    
            bufferIndex += readHeaderWireFormat(buffer, bufferIndex);
            bufferIndex += readAndXWireFormat(buffer, bufferIndex);
    
            final int len = bufferIndex - start;
            this.length = len;
    
            if (isRetainPayload()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

            bufferIndex += 4;
    
            // Skip reserved (2 bytes)
            bufferIndex += 2;
    
            // Read flags
            header.flags = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
            // Read session ID
            header.sessionId = SMBUtil.readInt8(buffer, bufferIndex);
    
            return header;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

        public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            final int nciphers = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
            this.ciphers = new int[nciphers];
            for (int i = 0; i < nciphers; i++) {
                this.ciphers[i] = SMBUtil.readInt2(buffer, bufferIndex);
                bufferIndex += 2;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

        public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
            if (len < 8) {
                throw new SMBProtocolDecodingException("Invalid compression context length: " + len);
            }
    
            int start = bufferIndex;
    
            // Read compression count
            int compressionCount = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                int readSetupWireFormat(byte[] buffer, int bufferIndex, int len) {
                    return 0;
                }
    
                @Override
                int readParametersWireFormat(byte[] buffer, int bufferIndex, int len) {
                    return 0;
                }
    
                @Override
                int readDataWireFormat(byte[] buffer, int bufferIndex, int len) {
                    return 0;
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            bufferIndex += 8;
    
            final int securityBufferOffset = SMBUtil.readInt2(buffer, bufferIndex);
            final int securityBufferLength = SMBUtil.readInt2(buffer, bufferIndex + 2);
            bufferIndex += 4;
    
            final int negotiateContextOffset = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // Validate security buffer parameters
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

            server.maxMpxCount = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            server.maxNumberVcs = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            server.maxBufferSize = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            server.maxRawSize = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            server.sessionKey = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            byte[] buffer = new byte[256];
            int bufferIndex = 0;
    
            // Write structure size (9) - indicates error response
            SMBUtil.writeInt2(9, buffer, bufferIndex);
            // Write error context and error data
            buffer[bufferIndex + 2] = 1; // Error context count
            buffer[bufferIndex + 3] = 0; // Reserved
            SMBUtil.writeInt4(0, buffer, bufferIndex + 4); // ByteCount (0 for error)
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComSeekResponse.java

            this.offset = SMBUtil.readInt4(buffer, bufferIndex);
            return 4;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top