Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for quantities (0.15 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/equality/semantic.go

    		// Ignore formatting, only care that numeric value stayed the same.
    		// TODO: if we decide it's important, it should be safe to start comparing the format.
    		//
    		// Uninitialized quantities are equivalent to 0 quantities.
    		return a.Cmp(b) == 0
    	},
    	func(a, b metav1.MicroTime) bool {
    		return a.UTC() == b.UTC()
    	},
    	func(a, b metav1.Time) bool {
    		return a.UTC() == b.UTC()
    	},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 12:02:53 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/quantity.go

    //
    // Arithmetic
    //
    //   - sign: Returns `1` if the quantity is positive, `-1` if it is negative. `0` if it is zero
    //
    //   - add: Returns sum of two quantities or a quantity and an integer
    //
    //   - sub: Returns difference between two quantities or a quantity and an integer
    //
    //     <Quantity>.sign() <int>
    //     <Quantity>.add(<quantity>) <quantity>
    //     <Quantity>.add(<integer>) <quantity>
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto

    // places. Numbers larger or more precise will be capped or rounded up.
    // (E.g.: 0.1m will rounded up to 1m.)
    // This may be extended in the future if we require larger or smaller quantities.
    //
    // When a Quantity is parsed from a string, it will remember the type of suffix
    // it had, and will use the same type again when it is serialized.
    //
    // Before serializing, Quantity will be put in "canonical form".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    )
    
    var (
    	// Errors that could happen while parsing a string.
    	ErrFormatWrong = errors.New("quantities must match the regular expression '" + splitREString + "'")
    	ErrNumeric     = errors.New("unable to parse numeric part of quantity")
    	ErrSuffix      = errors.New("unable to parse quantity's suffix")
    )
    
    // parseQuantityString is a fast scanner for quantity values.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  5. common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto

    // places. Numbers larger or more precise will be capped or rounded up.
    // (E.g.: 0.1m will rounded up to 1m.)
    // This may be extended in the future if we require larger or smaller quantities.
    //
    // When a Quantity is parsed from a string, it will remember the type of suffix
    // it had, and will use the same type again when it is serialized.
    //
    // Before serializing, Quantity will be put in "canonical form".
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        for (int i = fromIndex; i < toIndex; i++) {
          array[i] ^= Long.MAX_VALUE;
        }
      }
    
      /**
       * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 64-bit
       * quantities.
       *
       * <p><b>Java 8+ users:</b> use {@link Long#divideUnsigned(long, long)} instead.
       *
       * @param dividend the dividend (numerator)
       * @param divisor the divisor (denominator)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. pkg/apis/core/helper/helpers.go

    		// Ignore formatting, only care that numeric value stayed the same.
    		// TODO: if we decide it's important, it should be safe to start comparing the format.
    		//
    		// Uninitialized quantities are equivalent to 0 quantities.
    		return a.Cmp(b) == 0
    	},
    	func(a, b metav1.MicroTime) bool {
    		return a.UTC() == b.UTC()
    	},
    	func(a, b metav1.Time) bool {
    		return a.UTC() == b.UTC()
    	},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/UnsignedInts.java

        for (int i = fromIndex; i < toIndex; i++) {
          array[i] ^= Integer.MAX_VALUE;
        }
      }
    
      /**
       * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit
       * quantities.
       *
       * <p><b>Java 8+ users:</b> use {@link Integer#divideUnsigned(int, int)} instead.
       *
       * @param dividend the dividend (numerator)
       * @param divisor the divisor (denominator)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/UnsignedInts.java

        for (int i = fromIndex; i < toIndex; i++) {
          array[i] ^= Integer.MAX_VALUE;
        }
      }
    
      /**
       * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit
       * quantities.
       *
       * <p><b>Java 8+ users:</b> use {@link Integer#divideUnsigned(int, int)} instead.
       *
       * @param dividend the dividend (numerator)
       * @param divisor the divisor (denominator)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go

    			expr:               `quantity("10Mo")`,
    			expectedRuntimeErr: "quantities must match the regular expression.*",
    		},
    		{
    			// The above case fails due to a regex check. This case passes the
    			// regex check and fails a suffix check
    			name:               "parseInvalidSuffixPassesRegex",
    			expr:               `quantity("10Mm")`,
    			expectedRuntimeErr: "unable to parse quantity's suffix",
    		},
    		{
    			name:        "isQuantity",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top