Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for maxOffset (0.03 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            // Test with maximum timezone offset
            long maxOffset = 12L * 3600000L; // +12 hours
            response = new SmbComQueryInformationResponse(mockConfig, maxOffset);
    
            long testTime = 1000000000L;
            setFieldValue(response, "lastWriteTime", testTime);
    
            assertEquals(testTime + maxOffset, response.getCreateTime());
            assertEquals(testTime + maxOffset, response.getLastWriteTime());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            @Test
            @DisplayName("Should create lock with maximum values")
            void testConstructorWithMaxValues() {
                long maxOffset = Long.MAX_VALUE;
                long maxLength = Long.MAX_VALUE;
                int flags = 0xFFFFFFFF;
    
                lock = new Smb2Lock(maxOffset, maxLength, flags);
    
                assertNotNull(lock);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/archive/zip/struct.go

    func timeZone(offset time.Duration) *time.Location {
    	const (
    		minOffset   = -12 * time.Hour  // E.g., Baker island at -12:00
    		maxOffset   = +14 * time.Hour  // E.g., Line island at +14:00
    		offsetAlias = 15 * time.Minute // E.g., Nepal at +5:45
    	)
    	offset = offset.Round(offsetAlias)
    	if offset < minOffset || maxOffset < offset {
    		offset = 0
    	}
    	return time.FixedZone("", int(offset/time.Second))
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 28 21:41:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            }
    
            // MAC address
            int macOffset = srcIndex + 1 + (18 * numNames);
            byte[] testMac = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 };
            System.arraycopy(testMac, 0, src, macOffset, 6);
    
            // Statistics
            byte[] stats = { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15 };
            System.arraycopy(stats, 0, src, macOffset + 6, 6);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top