Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for setDataCount (0.21 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

            // Simulate setting info through readDataWireFormat
            byte[] buffer = createMockFileBasicInfoBuffer();
            response.setDataCount(buffer.length);
            response.readDataWireFormat(buffer, 0, buffer.length);
    
            FileBasicInfo info = response.getInfo(FileBasicInfo.class);
            assertNotNull(info);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            // Test with small data count
            response.setDataCount(10);
            assertEquals(10, response.getDataCount());
    
            // Test with large data count
            response.setDataCount(65535);
            assertEquals(65535, response.getDataCount());
    
            // Test with zero data count
            response.setDataCount(0);
            assertEquals(0, response.getDataCount());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  3. 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)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

                fail("Failed to set info field: " + e.getMessage());
            }
        }
    
        private void setDataCount(Trans2QueryFSInformationResponse response, int dataCount) {
            // Use the public setDataCount method from SmbComTransactionResponse
            response.setDataCount(dataCount);
        }
    
        private byte[] prepareAllocationInfoBuffer() {
            byte[] buffer = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

        @Test
        void testGetResponseLength() throws Exception {
            // Test getResponseLength method
            // First, set dataCount using reflection (since setDataCount is in parent class)
            Method setDataCountMethod = SmbComTransactionResponse.class.getDeclaredMethod("setDataCount", int.class);
            setDataCountMethod.setAccessible(true);
            setDataCountMethod.invoke(response, 256);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

        void testReadDataWireFormat_emptyBuffer() throws Exception {
            // Test reading data from an empty buffer
            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);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponse.java

            this.parameterOffset = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.parameterDisplacement = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            setDataCount(SMBUtil.readInt4(buffer, bufferIndex));
            bufferIndex += 4;
            this.dataOffset = 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)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

        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
            assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, response.getSubCommand());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

            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;
        }
    
        /**
         * Sets the transaction buffer
         * @param buffer
         *            the transaction buffer to use
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top