Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 84 for writeParameterWordsWireFormat (0.13 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

        }
    
        /**
         * Verify that writeParameterWordsWireFormat writes the file id and the
         * unsigned time correctly.  The last write time is zero which should be
         * encoded as four 0xFF bytes by {@code writeUTime}.
         */
        @ParameterizedTest(name = "fid={0}, lastWriteTime={1}")
        @MethodSource("validParams")
        @DisplayName("happy: writeParameterWordsWireFormat writes correct bytes")
    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)
  2. src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java

            buffer = new byte[100];
        }
    
        /**
         * Test for the writeParameterWordsWireFormat method.
         * It should always return 0.
         */
        @Test
        void testWriteParameterWordsWireFormat() {
            assertEquals(0, response.writeParameterWordsWireFormat(buffer, 0), "writeParameterWordsWireFormat should return 0");
        }
    
        /**
         * Test for the writeBytesWireFormat 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)
  3. src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java

        }
    
        /**
         * Test the writeParameterWordsWireFormat method.
         */
        @Test
        void testWriteParameterWordsWireFormat() {
            // Given
            SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect();
            byte[] dst = new byte[10];
    
            // When
            int result = smbComTreeDisconnect.writeParameterWordsWireFormat(dst, 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)
  4. src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java

            super(config);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#writeParameterWordsWireFormat(byte[], int)
         */
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 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)
  5. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

            int dstIndex = 0;
    
            // When
            int result = smbComTreeDisconnect.writeParameterWordsWireFormat(dst, dstIndex);
    
            // Then
            assertEquals(0, result);
        }
    
        /**
         * Test writeParameterWordsWireFormat with various buffer sizes
         */
        @Test
        @DisplayName("Test writeParameterWordsWireFormat with different buffer sizes")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java

            assertEquals(8, bytesRead);
        }
    
        /**
         * Test the writeParameterWordsWireFormat method.
         */
        @Test
        void testWriteParameterWordsWireFormat() {
            SmbComWriteAndXResponse response = new SmbComWriteAndXResponse();
            byte[] dst = new byte[0];
    
            int bytesWritten = response.writeParameterWordsWireFormat(dst, 0);
    
            // This method does nothing and should return 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/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

        }
    
        /**
         * Test the writeParameterWordsWireFormat method.
         * This method should do nothing and return 0.
         */
        @Test
        void testWriteParameterWordsWireFormat() {
            byte[] dst = new byte[10];
            int dstIndex = 0;
            // The method should return 0 as it writes no parameter words
            int result = smbComNegotiate.writeParameterWordsWireFormat(dst, dstIndex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/com/SmbComSeekResponse.java

        public long getOffset() {
            return this.offset;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#writeParameterWordsWireFormat(byte[], int)
         */
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

        }
    
        @Nested
        @DisplayName("writeParameterWordsWireFormat tests")
        class WriteParameterWords {
    
            @Test
            @DisplayName("Returns 0 with null array")
            void nullArray() {
                assertEquals(0, response.writeParameterWordsWireFormat(null, 0));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 5, 9 })
    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)
  10. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtCancel.java

        public boolean isCancel() {
            return true;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#writeParameterWordsWireFormat(byte[], int)
         */
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            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)
Back to Top