Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 199 for alignment (0.84 sec)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            int contextPos = 192;
            SMBUtil.writeInt2(1, buffer, contextPos); // Context type
            SMBUtil.writeInt2(2000, buffer, contextPos + 2); // Excessive data length (> 1024)
            // Add padding for 8-byte alignment
            SMBUtil.writeInt2(0, buffer, contextPos + 4); // Reserved
    
            // The validation logic is implemented and verified through code inspection
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil.go

    	}
    	if !fi1.ModTime().Equal(fi2.ModTime()) {
    		return false
    	}
    	if fi1.Mode() != fi2.Mode() {
    		return false
    	}
    	return fi1.Size() == fi2.Size()
    }
    
    // DirectioAlignSize - DirectIO alignment needs to be 4K. Defined here as
    // directio.AlignSize is defined as 0 in MacOS causing divide by 0 error.
    const DirectioAlignSize = 4096
    
    // CopyAligned - copies from reader to writer using the aligned input
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

            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
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            assertEquals(1, notifications.size());
            assertEquals(action, notifications.get(0).getAction());
        }
    
        @Test
        @DisplayName("Should handle notification chain with alignment")
        void testNotificationChainAlignment() throws Exception {
            // Given - notifications must be 4-byte aligned
            byte[] buffer = new byte[1024];
            int offset = 0;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            }
    
            @Test
            @DisplayName("Should align size to 8-byte boundary")
            void testSizeAlignment() {
                // Test various data lengths to ensure 8-byte alignment
                for (int i = 0; i < 16; i++) {
                    request.setData(new byte[i], 0, i);
                    int size = request.size();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                verify(mockBuffer).dec_ndr_long(); // assoc group
                verify(mockBuffer).advance(10); // secondary addr (length 10)
                verify(mockBuffer, times(2)).align(4); // alignment calls
                verify(mockBuffer).dec_ndr_small(); // num results
                verify(mockBuffer).advance(20); // transfer syntax / version
    
                // Verify result was set
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  7. internal/rest/client.go

    func (n *NetworkError) Unwrap() error {
    	return n.Err
    }
    
    // Client - http based RPC client.
    type Client struct {
    	connected int32 // ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
    	_         int32 // For 64 bits alignment
    	lastConn  int64
    
    	// HealthCheckFn is the function set to test for health.
    	// If not set the client will not keep track of health.
    	// Calling this returns true or false if the target
    	// is online or offline.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  8. docs/smb3-features/01-smb3-lease-design.md

            writeInt4(buffer, offset + 8, 16);  // Reserved
            
            int dataOffset = offset + 16 + getName().length();
            dataOffset = (dataOffset + 7) & ~7;  // 8-byte alignment
            
            writeInt4(buffer, offset + 12, dataOffset - offset);  // DataOffset
            
            // Write context name
            System.arraycopy(getName().getBytes(), 0, buffer, offset + 16, getName().length());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            ctxOffset += 6;
    
            // Salt (32 bytes)
            for (int i = 0; i < 32; i++) {
                buffer[ctxOffset + i] = (byte) i;
            }
            ctxOffset += 32;
    
            // Padding for 8-byte alignment
            ctxOffset = (ctxOffset + 7) & ~7;
    
            // Encryption context
            SMBUtil.writeInt2(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE, buffer, ctxOffset);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  10. cmd/xl-storage-disk-id-check.go

    	totalErrsAvailability atomic.Uint64 // Captures all data availability errors such as faulty disk, timeout errors.
    	totalErrsTimeout      atomic.Uint64 // Captures all timeout only errors
    
    	// apiCalls should be placed first so alignment is guaranteed for atomic operations.
    	apiCalls     [storageMetricLast]uint64
    	apiLatencies [storageMetricLast]*lockedLastMinuteLatency
    	diskID       atomic.Pointer[string]
    	storage      *xlStorage
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 34.5K bytes
    - Viewed (0)
Back to top