Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for setPadding (0.58 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            @Test
            @DisplayName("Should set padding correctly")
            void testSetPadding() {
                assertDoesNotThrow(() -> request.setPadding((byte) 0));
                assertDoesNotThrow(() -> request.setPadding((byte) 1));
                assertDoesNotThrow(() -> request.setPadding((byte) 0xFF));
            }
    
            @Test
            @DisplayName("Should set read flags correctly")
            void testSetReadFlags() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java

            this.fileId = fileId;
        }
    
        /**
         * Sets the padding for the read request
         *
         * @param padding
         *            the padding to set
         */
        public void setPadding(final byte padding) {
            this.padding = padding;
        }
    
        /**
         * Sets the read flags for the read operation
         *
         * @param readFlags
         *            the readFlags to set
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java

            this.setupCount = 0;
            this.totalDataCount = 0;
            this.maxParameterCount = 4;
            this.maxDataCount = 65536;
            this.maxSetupCount = (byte) 0x00;
        }
    
        @Override
        public int getPadding() {
            return 4;
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

            assertEquals(1, transaction.pad(3)); // Need 1 byte to align to 4
        }
    
        @Test
        @DisplayName("Test getPadding method")
        void testGetPadding() {
            int padding = transaction.getPadding();
            assertTrue(padding >= 0);
        }
    
        @Test
        @DisplayName("Test write operations")
        void testWriteOperations() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

        }
    
        @Test
        @DisplayName("Test getPadding returns correct value")
        void testGetPadding() {
            querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, 0x1000, DACL_SECURITY_INFORMATION);
            assertEquals(4, querySecurityDesc.getPadding());
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat returns zero")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

         */
        protected int pad(final int offset) {
            final int p = offset % getPadding();
            if (p == 0) {
                return 0;
            }
            return getPadding() - p;
        }
    
        /**
         * Gets the padding size for alignment
         * @return padding size
         */
        public int getPadding() {
            return PADDING_SIZE;
        }
    
        @Override
    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