Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 108 for readDataWireFormat (0.09 seconds)

  1. 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;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

            assertEquals(0, read);
        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns 0")
        void testReadDataWireFormat() {
            trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            byte[] buffer = new byte[256];
            int read = trans2QueryFSInfo.readDataWireFormat(buffer, 0, buffer.length);
    
            // Should always return 0
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            assertEquals(0, read);
        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns 0")
        void testReadDataWireFormat() {
            trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo);
    
            byte[] buffer = new byte[256];
            int read = trans2SetFileInfo.readDataWireFormat(buffer, 0, buffer.length);
    
            // Should always return 0
            assertEquals(0, read);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  4. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.3K bytes
    - Click Count (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);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  6. 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) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12K bytes
    - Click Count (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;
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                // Fill with some test data
                for (int i = 0; i < buffer.length; i++) {
                    buffer[i] = (byte) (i % 256);
                }
    
                int result = resp.readDataWireFormat(buffer, 0, 40);
                assertNotNull(resp.info);
                assertTrue(resp.info instanceof Trans2QueryPathInformationResponse.SmbQueryFileBasicInfo);
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/smb1/InfoTest.java

            Trans2QueryPathInformationResponse trans =
                    new Trans2QueryPathInformationResponse(Trans2QueryPathInformationResponse.SMB_QUERY_FILE_BASIC_INFO) {
                    };
            int bytesRead = trans.readDataWireFormat(buffer, 0, buffer.length);
            assertEquals(buffer.length, bytesRead);
            // Access private field 'info'
            java.lang.reflect.Field infoField = Trans2QueryPathInformationResponse.class.getDeclaredField("info");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
Back to Top