Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for dataCount (0.12 sec)

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

         * @return the dataCount
         */
        protected final int getDataCount() {
            return this.dataCount;
        }
    
        /**
         * Sets the data count for this transaction response
         * @param dataCount
         *            the dataCount to set
         */
        public final void setDataCount(final int dataCount) {
            this.dataCount = dataCount;
        }
    
        /**
    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/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            // Set dataCount using reflection
            setDataCount(response, 20);
    
            int bytesRead = response.readDataWireFormat(buffer, 0, 20);
    
            assertEquals(0, bytesRead);
            assertNull(response.getInfo());
        }
    
        @Test
        void testReadDataWireFormat_EmptyBuffer() throws Exception {
            // Test with empty dataCount but decode still processes buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            byte[] buffer = new byte[10];
    
            // Set data count to test return value
            response.setDataCount(5);
    
            // With 0 entries, should return dataCount
            int result = response.readDataWireFormat(buffer, 0, 0);
            // Should return dataCount
            assertEquals(5, result);
        }
    
        @Test
        void testGetSid() {
            // Test the getSid method
            // By default, it should be 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java

            assertEquals(smbComNtTransaction.parameterOffset, SmbComTransaction.readInt4(dst, 23),
                    "parameterOffset should be written correctly");
            assertEquals(smbComNtTransaction.dataCount, SmbComTransaction.readInt4(dst, 27), "dataCount should be written correctly");
            assertEquals(smbComNtTransaction.dataOffset, SmbComTransaction.readInt4(dst, 31), "dataOffset should be written correctly");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

            }
    
            if (dataCount > 0) {
                p = pad1;
                while (p-- > 0) {
                    dst[dstIndex] = (byte) 0x00; // Pad1
                    dstIndex++;
                }
                System.arraycopy(txn_buf, bufDataOffset, dst, dstIndex, dataCount);
                bufDataOffset += dataCount;
                dstIndex += dataCount;
            }
    
            return dstIndex - start;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java

                bufferIndex += parameterCount;
            }
            if (dataCount > 0) {
                bufferIndex += pad1 = dataOffset - (bufferIndex - headerStart);
                System.arraycopy(buffer, bufferIndex, txn_buf, bufDataStart + dataDisplacement, dataCount);
                bufferIndex += dataCount;
            }
    
            /* Check to see if the entire transaction has been
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

            }
    
            if (this.dataCount > 0) {
                System.arraycopy(this.txn_buf, this.bufDataOffset, dst, this.headerStart + this.dataOffset, this.dataCount);
                this.bufDataOffset += this.dataCount;
                end = Math.max(end, this.headerStart + this.dataOffset + this.dataCount);
            }
    
            return end - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

                return totalDataCount;
            }
    
            int getParameterCount() {
                return parameterCount;
            }
    
            int getDataCount() {
                return dataCount;
            }
    
            int getSetupCount() {
                return setupCount;
            }
    
            boolean isParametersDone() {
                return (boolean) getFieldValue("parametersDone");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java

            // parameterOffset = 30
            writeInt4(30, buffer, bufferIndex);
            bufferIndex += 4;
            // parameterDisplacement = 0
            writeInt4(0, buffer, bufferIndex);
            bufferIndex += 4;
            // dataCount = 15
            writeInt4(15, buffer, bufferIndex);
            bufferIndex += 4;
            // dataOffset = 40
            writeInt4(40, buffer, bufferIndex);
            bufferIndex += 4;
            // dataDisplacement = 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComNtTransaction.java

            if (command == SMB_COM_NT_TRANSACT_SECONDARY) {
                writeInt4(parameterDisplacement, dst, dstIndex);
                dstIndex += 4;
            }
            writeInt4(dataCount, dst, dstIndex);
            dstIndex += 4;
            writeInt4(dataCount == 0 ? 0 : dataOffset, dst, dstIndex);
            dstIndex += 4;
            if (command == SMB_COM_NT_TRANSACT_SECONDARY) {
                writeInt4(dataDisplacement, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top