Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 87 for readParameterWordsWireFormat (0.16 seconds)

  1. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

        @MethodSource("int32Provider")
        @DisplayName("readParameterWordsWireFormat correctly decodes 32-bit offset")
        void testReadParameterWords(int expectedInt, byte[] bytes) {
            // The implementation reads via SMBUtil.readInt4 which returns an int
            // When assigned to a long field, it gets sign-extended
            int readLen = response.readParameterWordsWireFormat(bytes, 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java

        }
    
        /**
         * Test of readParameterWordsWireFormat method
         */
        @Test
        public void testReadParameterWordsWireFormat() {
            // Given
            byte[] buffer = new byte[] { (byte) 0xff, (byte) 0xff, 0, 0, 0, 0, 0, 0 };
            SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config);
    
            // When
            int result = instance.readParameterWordsWireFormat(buffer, 0);
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java

            dstIndex += 2;
            return start - dstIndex;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#readParameterWordsWireFormat(byte[], int)
         */
        @Override
        protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) {
            final int start = bufferIndex;
    
            this.fid = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java

        }
    
        /**
         * Test for the readParameterWordsWireFormat method.
         * It should always return 0.
         */
        @Test
        void testReadParameterWordsWireFormat() {
            assertEquals(0, response.readParameterWordsWireFormat(buffer, 0), "readParameterWordsWireFormat should return 0");
        }
    
        /**
         * Test for the readBytesWireFormat method.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java

        }
    
        /**
         * Test the readParameterWordsWireFormat method.
         */
        @Test
        void testReadParameterWordsWireFormat() {
            // Given
            SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect();
            byte[] buffer = new byte[10];
    
            // When
            int result = smbComTreeDisconnect.readParameterWordsWireFormat(buffer, 0);
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java

        /**
         * Test the readParameterWordsWireFormat method.
         */
        @Test
        void testReadParameterWordsWireFormat() {
            SmbComWriteAndXResponse response = new SmbComWriteAndXResponse();
            byte[] buffer = new byte[] { 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // count = 10
    
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtCancel.java

            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#readParameterWordsWireFormat(byte[], int)
         */
        @Override
        protected int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("readParameterWordsWireFormat tests")
        class ReadParameterWords {
    
            @Test
            @DisplayName("Returns 0 with null array")
            void nullArray() {
                assertEquals(0, response.readParameterWordsWireFormat(null, 0));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 1, 6 })
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java

        @ParameterizedTest
        @ValueSource(ints = { 0, -1, 7 })
        @DisplayName("readParameterWordsWireFormat always returns 0")
        void readParameterWordsWireFormatReturnsZero(int index) {
            SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
            assertEquals(0, msg.readParameterWordsWireFormat(new byte[5], index));
            assertEquals(0, msg.readParameterWordsWireFormat(null, index));
        }
    
        @ParameterizedTest
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

        }
    
        /**
         * Test of readParameterWordsWireFormat method with zero word count.
         */
        @Test
        public void testReadParameterWordsWireFormatWithZeroWordCount() {
            byte[] buffer = new byte[20];
            response.wordCount = 0;
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
            assertEquals(0, bytesRead);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
Back to Top