Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for decSizes (0.07 sec)

  1. cmd/encryption-v1_test.go

    		// for the read.
    		readLen := int64(6)*humanize.MiByte + 1
    		if lsum(test.decSizes) >= readLen {
    			o, l, skip, sn, ps, err := test.oi.GetDecryptedRange(&HTTPRangeSpec{true, -readLen, -1})
    			if err != nil {
    				t.Errorf("Case %d: unexpected err: %v", i, err)
    			}
    
    			oRef, lRef, skipRef, snRef, psRef := decryptedRangeRef(test.decSizes, 0, readLen, true)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  2. cmd/shared-lock.go

    	ctx, cancel := context.WithCancel(context.Background())
    	go func() {
    		select {
    		case <-ctx1.Done():
    		case <-ctx2.Done():
    		// The lock acquirer decides to cancel, exit this goroutine
    		case <-ctx.Done():
    		}
    
    		cancel()
    	}()
    	return ctx, cancel
    }
    
    func (ld sharedLock) GetLock(ctx context.Context) (context.Context, context.CancelFunc) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 13 09:26:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/SortedLists.java

       *
       * <p>If there are elements in the list which compare as equal to the key, the choice of {@link
       * KeyPresentBehavior} decides which index is returned. If no elements compare as equal to the
       * key, the choice of {@link KeyAbsentBehavior} decides which index is returned.
       *
       * <p>This method runs in log(n) time on random-access lists, which offer near-constant-time
       * access to each list element.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

            }
            verifyNoInteractions(mockDir);
        }
    
        /**
         * Edge: passing a null directory object. Interface allows null; implementation decides.
         */
        @Test
        @DisplayName("null directory is handled by implementation")
        void handlesNullDirectory() throws Exception {
            SmbFilenameFilter filter = (dir, name) -> dir == null;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

       */
      open fun cacheConditionalHit(
        call: Call,
        cachedResponse: Response,
      ) {
      }
    
      /**
       * Invoked when OkHttp decides whether to retry after a connectivity failure.
       *
       * OkHttp won't retry when it is configured not to:
       *
       *  * If retries are forbidden with [OkHttpClient.retryOnConnectionFailure]. (OkHttp's defaults
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  6. cmd/object-api-utils.go

    		off, length, skipLen, seqNumber, partStart, err = oi.GetDecryptedRange(rs)
    		if err != nil {
    			return nil, 0, 0, err
    		}
    		var decSize int64
    		decSize, err = oi.DecryptedSize()
    		if err != nil {
    			return nil, 0, 0, err
    		}
    		var decRangeLength int64
    		decRangeLength, err = rs.GetLength(decSize)
    		if err != nil {
    			return nil, 0, 0, err
    		}
    
    		// We define a closure that performs decryption given
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 25 15:08:54 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/Types.java

      static ParameterizedType newParameterizedType(Class<?> rawType, Type... arguments) {
        return new ParameterizedTypeImpl(
            ClassOwnership.JVM_BEHAVIOR.getOwnerType(rawType), rawType, arguments);
      }
    
      /** Decides what owner type to use for constructing {@link ParameterizedType} from a raw class. */
      private enum ClassOwnership {
        OWNED_BY_ENCLOSING_CLASS {
          @Override
          @Nullable Class<?> getOwnerType(Class<?> rawType) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  8. cmd/endpoint-ellipses.go

    			endpoints = append(endpoints, strings.Join(lbls, ""))
    		}
    	}
    	s.endpoints = endpoints
    	return endpoints
    }
    
    // Get returns the sets representation of the endpoints
    // this function also intelligently decides on what will
    // be the right set size etc.
    func (s endpointSet) Get() (sets [][]string) {
    	k := uint64(0)
    	endpoints := s.getEndpoints()
    	for i := range s.setIndexes {
    		for j := range s.setIndexes[i] {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. cmd/signature-v4-utils_test.go

    		t.Fatal("no policies found")
    	}
    
    	if policies[0] != "consoleAdmin" {
    		t.Fatalf("expected 'consoleAdmin', %s", policies[0])
    	}
    }
    
    // TestSkipContentSha256Cksum - Test validate the logic which decides whether
    // to skip checksum validation based on the request header.
    func TestSkipContentSha256Cksum(t *testing.T) {
    	testCases := []struct {
    		inputHeaderKey   string
    		inputHeaderValue string
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  10. cmd/erasure-object.go

    			// ... nothing changes for compressed stream.
    			// if actualSize is -1 we have no known way to
    			// determine what is the actualSize.
    		case encrypted:
    			decSize, err := sio.DecryptedSize(uint64(n))
    			if err == nil {
    				actualSize = int64(decSize)
    			}
    		default:
    			actualSize = n
    		}
    	}
    	// If ServerSideChecksum is wanted for this object, it takes precedence
    	// over opts.WantChecksum.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 80.4K bytes
    - Viewed (0)
Back to top