Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 100 for alignment (0.42 sec)

  1. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        /**
         * Rounds up the size to 8-byte alignment.
         *
         * @param size the size to align
         * @return the aligned size
         */
        protected static final int size8(final int size) {
            return size8(size, 0);
        }
    
        /**
         * Rounds up the size to the specified alignment.
         *
         * @param size the size to align
         * @param align the alignment boundary
         * @return the aligned size
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

            // Arrange
            Smb2LogoffRequest req = newRequest();
            int base = Smb2Constants.SMB2_HEADER_LENGTH + 4; // structure size
            int expected = ((base + 7) / 8) * 8; // expected 8-byte alignment
    
            // Act
            int actual = req.size();
    
            // Assert
            assertEquals(expected, actual, "size() must be 8-byte aligned");
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

            return (flags & Smb2HandleCapabilities.SMB2_DHANDLE_FLAG_PERSISTENT) != 0;
        }
    
        @Override
        public int size() {
            // Context header (16) + name length (4) + padding to 8-byte alignment (4) + data (32)
            return 16 + 4 + 4 + STRUCTURE_SIZE;
        }
    
        @Override
        public int encode(byte[] dst, int dstIndex) {
            int start = dstIndex;
    
            // Write context header
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. docs/smb3-features/02-persistent-handles-design.md

            
            // Data (16 bytes of reserved)
            int dataOffset = offset + 16 + nameLen;
            dataOffset = (dataOffset + 7) & ~7;  // 8-byte alignment
            
            for (int i = 0; i < 16; i++) {
                buffer[dataOffset + i] = 0;
            }
        }
        
        @Override
        public int size() {
            int nameLen = getName().length();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            assertEquals((byte) 0x04, dst[0]); // First buffer format byte
    
            // Find the second buffer format byte by searching for it
            // In Unicode mode, the old filename is written as Unicode, then 0x04, then an alignment byte
            int secondBufferFormatIndex = -1;
            for (int i = 1; i < result - 1; i++) {
                if (dst[i] == (byte) 0x04) {
                    secondBufferFormatIndex = i;
                    break;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

            dstIndex += this.info.encode(dst, dstIndex);
    
            /* 6 zeros observed with NT */
            SMBUtil.writeInt8(0L, dst, dstIndex);
            dstIndex += 6;
    
            /*
             * Also observed 4 byte alignment but we stick
             * with the default for jCIFS which is 2
             */
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

            assertSame(transaction, result);
        }
    
        @Test
        @DisplayName("Test pad calculation with various offsets")
        void testPadCalculation() {
            // Test pad calculation with different alignment values
            assertEquals(0, transaction.pad(0)); // Already aligned
            assertEquals(0, transaction.pad(4)); // Already aligned
            assertEquals(0, transaction.pad(8)); // Already aligned
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

       * process it; all should produce the same answer, the only difference should be the number of
       * process()/processRemaining() invocations, due to alignment.
       */
      @AndroidIncompatible // slow. TODO(cpovirk): Maybe just reduce iterations under Android.
      public void testExhaustive() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  9. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

                        "Time should never go backwards even with rapid successive calls");
            }
        }
    
        @Test
        @DisplayName("MonotonicClock should maintain reasonable alignment with system time")
        void testSystemTimeAlignment() {
            Instant monotonic = MonotonicClock.now();
            Instant system = Instant.now();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. cmd/data-scanner-metric.go

    	actions        [lifecycle.ActionCount]uint64
    	actionsLatency [lifecycle.ActionCount]lockedLastMinuteLatency
    
    	// currentPaths contains (string,*currentPathTracker) for each disk processing.
    	// Alignment not required.
    	currentPaths sync.Map
    
    	cycleInfoMu sync.Mutex
    	cycleInfo   *currentScannerCycle
    }
    
    var globalScannerMetrics scannerMetrics
    
    const (
    	// START Realtime metrics, that only to records
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top