Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for writeParameterWordsWireFormat (0.24 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            int bytesWritten = transaction.writeParameterWordsWireFormat(dst, 0);
    
            // Verify setup count is written correctly
            assertEquals(3, dst[35]);
    
            // Verify the total bytes written accounts for setup words
            assertTrue(bytesWritten >= 38 + 6); // Base structure + setup words
        }
    
        @Test
        @DisplayName("Test writeParameterWordsWireFormat returns correct byte count")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. 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")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

            }
    
            @Test
            @DisplayName("writeParameterWordsWireFormat should return 0")
            void testWriteParameterWordsReturnsZero() throws Exception {
                // Given
                byte[] dst = new byte[100];
                int dstIndex = 10;
    
                // When
                Method method = SmbComNtCancel.class.getDeclaredMethod("writeParameterWordsWireFormat", byte[].class, int.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            assertEquals(expectedAttributes, searchAttributesField.get(smbComRename));
        }
    
        /**
         * Test writeParameterWordsWireFormat method
         */
        @Test
        @DisplayName("Test writeParameterWordsWireFormat writes search attributes correctly")
        public void testWriteParameterWordsWireFormat() {
            // Given
            byte[] dst = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

        }
    
        @Test
        void testWriteParameterWordsWireFormat() {
            // Test writeParameterWordsWireFormat - should always return 0
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    
            byte[] buffer = new byte[256];
            int bytesWritten = response.writeParameterWordsWireFormat(buffer, 0);
    
            assertEquals(0, bytesWritten);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

         * @return the number of bytes written
         */
        protected int writeAndXWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            this.wordCount = writeParameterWordsWireFormat(dst, start + ANDX_OFFSET_OFFSET + 2);
            this.wordCount += 4; // for command, reserved, and offset
            dstIndex += this.wordCount + 1;
            this.wordCount /= 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            assertDoesNotThrow(() -> response.decode(buffer, 0));
        }
    
        @Test
        @DisplayName("Test writeParameterWordsWireFormat")
        void testWriteParameterWordsWireFormat() {
            byte[] dst = new byte[256];
            int result = response.writeParameterWordsWireFormat(dst, 0);
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test writeDataWireFormat")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

            length = bufferIndex - start;
            return length;
        }
    
        int writeAndXWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            wordCount = writeParameterWordsWireFormat(dst, start + ANDX_OFFSET_OFFSET + 2);
            wordCount += 4; // for command, reserved, and offset
            dstIndex += wordCount + 1;
            wordCount /= 2;
            dst[start] = (byte) (wordCount & 0xFF);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            DummyAndXBlock() {
                super();
            }
    
            DummyAndXBlock(ServerMessageBlock andx) {
                super(andx);
            }
    
            @Override
            int writeParameterWordsWireFormat(byte[] dst, int dstIndex) {
                paramWordsWritten = 10; // simulate write of 10 bytes of parameter words
                return paramWordsWritten;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

        public SmbComTransactionResponse nextElement() {
            if (this.isPrimary) {
                this.isPrimary = false;
            }
            return this;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top