Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for dataCount (0.03 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/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)
  4. 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)
  5. 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)
  6. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            // parameterOffset (4 bytes)
            SMBUtil.writeInt4(64, buffer, bufferIndex + 15);
    
            // parameterDisplacement (4 bytes)
            SMBUtil.writeInt4(0, buffer, bufferIndex + 19);
    
            // dataCount (4 bytes)
            SMBUtil.writeInt4(200, buffer, bufferIndex + 23);
    
            // dataOffset (4 bytes)
            SMBUtil.writeInt4(128, buffer, bufferIndex + 27);
    
            // dataDisplacement (4 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  7. cmd/erasure.go

    	return nil
    }
    
    // defaultWQuorum write quorum based on setDriveCount and defaultParityCount
    func (er erasureObjects) defaultWQuorum() int {
    	dataCount := er.setDriveCount - er.defaultParityCount
    	if dataCount == er.defaultParityCount {
    		return dataCount + 1
    	}
    	return dataCount
    }
    
    // defaultRQuorum read quorum based on setDriveCount and defaultParityCount
    func (er erasureObjects) defaultRQuorum() int {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            assertNotNull(resp);
            assertEquals(command, resp.getCommand());
            assertEquals(subcommand, resp.getSubCommand());
        }
    
        @Test
        @DisplayName("Test dataCount getter and setter")
        void testDataCountGetterSetter() {
            assertEquals(0, response.getDataCount());
            response.setDataCount(100);
            assertEquals(100, response.getDataCount());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

                this.parameterDisplacement = value;
            }
    
            public int getDataCount() {
                return dataCount;
            }
    
            public void setDataCount(int value) {
                this.dataCount = value;
            }
    
            public int getDataOffset() {
                return dataOffset;
            }
    
            public void setDataOffset(int value) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

        }
    
        @Test
        @DisplayName("Test inherited properties from SmbComTransactionResponse")
        void testInheritedProperties() {
            // Test that inherited properties are accessible
    
            // Test dataCount property - using public method
            response.setDataCount(100);
            // Note: getDataCount() is protected, so we can't test it directly
    
            // Test subCommand property
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
Back to top