Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for dataCount (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransaction.java

                SMBUtil.writeInt4(this.parameterDisplacement, dst, dstIndex);
                dstIndex += 4;
            }
            SMBUtil.writeInt4(this.dataCount, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt4(this.dataCount == 0 ? 0 : this.dataOffset, dst, dstIndex);
            dstIndex += 4;
            if (this.getCommand() == SMB_COM_NT_TRANSACT_SECONDARY) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            assertTrue(result.endsWith("]"));
        }
    
        @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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            assertTrue(result.endsWith("]"));
        }
    
        @Test
        void testGetResponseLength() throws Exception {
            // Use reflection to set dataCount
            Field dataCountField = SmbComTransactionResponse.class.getDeclaredField("dataCount");
            dataCountField.setAccessible(true);
            dataCountField.setInt(response, 42);
    
            assertEquals(42, response.getResponseLength());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                bufferIndex += e.nextEntryOffset;
            }
    
            /* last nextEntryOffset for NT 4(but not 98) is 0 so we must
             * use dataCount or our accounting will report an error for NT :~(
             */
    
            //return bufferIndex - start;
    
            return dataCount;
        }
    
        @Override
        public String toString() {
            String c;
            if (subCommand == SmbComTransaction.TRANS2_FIND_FIRST2) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComNtTransactionResponse.java

            bufferIndex += 4;
            parameterOffset = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            parameterDisplacement = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            dataCount = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            dataOffset = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            dataDisplacement = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    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