Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 108 of 108 for readDataWireFormat (0.06 sec)

  1. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            // Copy filename into buffer at offset 94
            System.arraycopy(filenameBytes, 0, buffer, 94, filenameBytes.length);
    
            response.dataCount = 120;
            int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length);
    
            assertEquals(response.dataCount, bytesRead);
            assertEquals(1, response.results.length);
    
            Trans2FindFirst2Response.SmbFindFileBothDirectoryInfo info =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

            bufferIndex += 2;
            lastNameOffset = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
            return bufferIndex - start;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
            SmbFindFileBothDirectoryInfo e;
    
            lastNameBufferIndex = bufferIndex + lastNameOffset;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

        void testReadDataWireFormat() {
            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL);
    
            byte[] buffer = new byte[256];
            int read = trans2QueryPathInfo.readDataWireFormat(buffer, 0, buffer.length);
    
            // Should read nothing (returns 0)
            assertEquals(0, read);
        }
    
        @Test
        void testMapInformationLevel() {
            // Test valid information levels
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

                return 0;
            }
    
            @Override
            int readParametersWireFormat(byte[] buffer, int bufferIndex, int len) {
                return 0;
            }
    
            @Override
            int readDataWireFormat(byte[] buffer, int bufferIndex, int len) {
                return 0;
            }
    
            // Helper methods to access private fields using reflection
            protected void setFieldValue(String fieldName, Object value) {
    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/trans2/Trans2FindNext2Test.java

            trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
    
            byte[] buffer = new byte[10];
            int read = trans2FindNext2.readDataWireFormat(buffer, 0, 10);
    
            assertEquals(0, read);
        }
    
        @Test
        void testToString() {
            // Test toString method
            when(mockConfig.getListSize()).thenReturn(50);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            protected int readParametersWireFormat(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
                return len;
            }
    
            @Override
            protected int readDataWireFormat(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
                return len;
            }
        }
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
    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. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            }
    
            @Override
            protected int readParametersWireFormat(byte[] buffer, int bufferIndex, int len) {
                return 0;
            }
    
            @Override
            protected int readDataWireFormat(byte[] buffer, int bufferIndex, int len) {
                return 0;
            }
    
            public void setSetupWireFormatReturn(int value) {
                this.setupWireFormatReturn = 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)
  8. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

         * @param buffer source buffer
         * @param bufferIndex starting index in source buffer
         * @param len length of data to read
         * @return number of bytes read
         */
        protected abstract int readDataWireFormat(byte[] buffer, int bufferIndex, int len);
    
        @Override
        public String toString() {
            return (super.toString() + ",totalParameterCount=" + this.totalParameterCount + ",totalDataCount=" + this.totalDataCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
Back to top