Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for bufDataStart (2.54 sec)

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

            final int start = bufferIndex;
    
            this.totalParameterCount = SMBUtil.readInt2(buffer, bufferIndex);
            if (this.bufDataStart == 0) {
                this.bufDataStart = this.totalParameterCount;
            }
            bufferIndex += 2;
            this.totalDataCount = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 4; // Reserved
    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/smb1/smb1/SmbComTransactionResponse.java

        @Override
        int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) {
            final int start = bufferIndex;
    
            totalParameterCount = readInt2(buffer, bufferIndex);
            if (bufDataStart == 0) {
                bufDataStart = totalParameterCount;
            }
            bufferIndex += 2;
            totalDataCount = readInt2(buffer, bufferIndex);
            bufferIndex += 4; // Reserved
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java

            assertEquals(0, response.setupCount);
        }
    
        @Test
        void testReadParameterWordsWireFormat_bufDataStartIsNotZero() {
            // Test case when bufDataStart is not 0.
            response.bufDataStart = 50; // Initial non-zero value
            byte[] buffer = new byte[37]; // 3 reserved + 8*4 bytes for int4 values + 2 bytes for setupCount
            int bufferIndex = 0;
    
            // Reserved bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

            assertEquals(7, d.getDataCount(), "dataCount parsed");
            assertEquals(1, d.getSetupCount(), "setupCount parsed");
            // When bufDataStart was zero it should be set to totalParameterCount
            assertEquals(5, d.getBufferDataStart(), "bufDataStart inferred from totalParameterCount");
        }
    
        /**
         * Exercise readBytesWireFormat where both parameter and data are
         * copied in a single call.
    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/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

        }
    
        @Test
        @DisplayName("Test bufDataStart initialization when zero")
        void testBufDataStartInitialization() throws Exception {
            byte[] buffer = new byte[100];
            int bufferIndex = 0;
    
            // Set bufDataStart to 0 initially
            Field bufDataStartField = response.getClass().getSuperclass().getSuperclass().getDeclaredField("bufDataStart");
            bufDataStartField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponse.java

            buffer[bufferIndex++] = (byte) 0x00; // Reserved
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
    
            this.totalParameterCount = SMBUtil.readInt4(buffer, bufferIndex);
            if (this.bufDataStart == 0) {
                this.bufDataStart = this.totalParameterCount;
            }
            bufferIndex += 4;
            this.totalDataCount = 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
    - 3.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComNtTransactionResponse.java

            buffer[bufferIndex++] = (byte) 0x00; // Reserved
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
    
            totalParameterCount = readInt4(buffer, bufferIndex);
            if (bufDataStart == 0) {
                bufDataStart = totalParameterCount;
            }
            bufferIndex += 4;
            totalDataCount = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            parameterCount = readInt4(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top