Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

            bufferIndex += 2;
            this.parameterOffset = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.parameterDisplacement = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.dataCount = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.dataOffset = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

            this.server.smaxMpxCount = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.server.maxNumberVcs = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.server.maxBufferSize = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.server.maxRawSize = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            // Command - SMB2_SET_INFO (0x0011)
            SMBUtil.writeInt2(0x0011, buffer, bufferIndex + 12);
            // Credits
            SMBUtil.writeInt2(1, buffer, bufferIndex + 14);
            // Flags
            SMBUtil.writeInt4(1, buffer, bufferIndex + 16); // SMB2_FLAGS_SERVER_TO_REDIR
            // Next command
            SMBUtil.writeInt4(0, buffer, bufferIndex + 20);
            // Message ID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            buffer[bufferIndex++] = (byte) 0x00;
            buffer[bufferIndex++] = (byte) 0x40;
            buffer[bufferIndex++] = 0;
            buffer[bufferIndex++] = 0;
            // maxRawSize
            buffer[bufferIndex++] = (byte) 0x00;
            buffer[bufferIndex++] = (byte) 0x10;
            buffer[bufferIndex++] = 0;
            buffer[bufferIndex++] = 0;
            // sessionKey
            buffer[bufferIndex++] = 1;
            buffer[bufferIndex++] = 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. 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)
  6. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

            bufferIndex += 8;
    
            this.allocationSize = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            this.endOfFile = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            this.fileAttributes = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            bufferIndex += 4; // Reserved2
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  7. 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)
  8. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

                // Arrange
                byte[] buffer = new byte[200];
                int bufferIndex = testCase[0];
                int len = testCase[1];
    
                // Act
                int result = response.readSetupWireFormat(buffer, bufferIndex, len);
    
                // Assert
                assertEquals(0, result, "Failed for bufferIndex=" + bufferIndex + ", len=" + len);
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 0;
                SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4
                SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field
    
                // When
                int bytesRead = response.readBytesWireFormat(buffer, bufferIndex);
    
                // Then
                assertEquals(4, bytesRead);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            byte[] buffer = new byte[512];
            int bufferIndex = 0;
    
            // Set structure size to 9 (valid)
            SMBUtil.writeInt2(9, buffer, bufferIndex);
            // Set buffer offset (relative to header start)
            SMBUtil.writeInt2(80, buffer, bufferIndex + 2);
            // Set buffer length (empty directory)
            SMBUtil.writeInt4(0, buffer, bufferIndex + 4);
    
            // Mock getHeaderStart
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
Back to top