Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for fromInt (0.07 sec)

  1. internal/s3select/sql/funceval.go

    	inferTypeAsString(v)
    	s, ok := v.ToString()
    	if !ok {
    		err := fmt.Errorf("%s/%s expects a string argument", sqlFnCharLength, sqlFnCharacterLength)
    		return nil, errIncorrectSQLFunctionArgumentType(err)
    	}
    	return FromInt(int64(len([]rune(s)))), nil
    }
    
    func lowerCase(v *Value) (*Value, error) {
    	inferTypeAsString(v)
    	s, ok := v.ToString()
    	if !ok {
    		err := fmt.Errorf("%s expects a string argument", sqlFnLower)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

          assertEquals(hashUtf16, murmur3_32().newHasher().putString(str, UTF_16).hash());
        }
      }
    
      private static void assertHash(int expected, HashCode actual) {
        assertEquals(HashCode.fromInt(expected), actual);
      }
    
      public void testParanoidHashBytes() {
        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:29:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. istioctl/pkg/describe/describe_test.go

    						Selector: map[string]string{
    							"app": "productpage",
    						},
    						Ports: []corev1.ServicePort{
    							{
    								Name:       "http",
    								Port:       9080,
    								TargetPort: intstr.FromInt(9080),
    							},
    						},
    					},
    				},
    				&corev1.Service{
    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "istio-ingressgateway",
    						Namespace: "default",
    					},
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 30.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

      private static HashCode fmix(int h1, int length) {
        h1 ^= length;
        h1 ^= h1 >>> 16;
        h1 *= 0x85ebca6b;
        h1 ^= h1 >>> 13;
        h1 *= 0xc2b2ae35;
        h1 ^= h1 >>> 16;
        return HashCode.fromInt(h1);
      }
    
      private static final class Murmur3_32Hasher extends AbstractHasher {
        private int h1;
        private long buffer;
        private int shift;
        private int length;
        private boolean isDone;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/net_test.go

    					Port: intstr.FromString("foo-2-port"),
    				},
    			},
    		},
    		StartupProbe: &corev1.Probe{
    			ProbeHandler: corev1.ProbeHandler{
    				HTTPGet: &corev1.HTTPGetAction{
    					Port: intstr.FromInt(7777),
    				},
    			},
    		},
    	}
    
    	containers := []corev1.Container{app1}
    
    	var podStatus corev1.PodStatus
    	if v6IP {
    		podStatus = corev1.PodStatus{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 25 16:13:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. internal/s3select/sql/value.go

    	default:
    		return fmt.Sprintf("%v:INVALID", v.value)
    	}
    }
    
    // FromFloat creates a Value from a number
    func FromFloat(f float64) *Value {
    	return &Value{value: f}
    }
    
    // FromInt creates a Value from an int
    func FromInt(f int64) *Value {
    	return &Value{value: f}
    }
    
    // FromString creates a Value from a string
    func FromString(str string) *Value {
    	return &Value{value: str}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/HashCode.java

       * are interpreted in little endian order.
       *
       * @since 15.0 (since 12.0 in HashCodes)
       */
      public static HashCode fromInt(int hash) {
        return new IntHashCode(hash);
      }
    
      private static final class IntHashCode extends HashCode implements Serializable {
        final int hash;
    
        IntHashCode(int hash) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/HashCode.java

       * are interpreted in little endian order.
       *
       * @since 15.0 (since 12.0 in HashCodes)
       */
      public static HashCode fromInt(int hash) {
        return new IntHashCode(hash);
      }
    
      private static final class IntHashCode extends HashCode implements Serializable {
        final int hash;
    
        IntHashCode(int hash) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/Crc32cHashFunction.java

            // rolling CRCs.  So we call it on an empty ByteBuffer if we didn't already.
            processRemaining(EMPTY);
          }
          return HashCode.fromInt(~crc0);
        }
    
        static final int[] BYTE_TABLE = {
          0x00000000, 0xf26b8303, 0xe13b70f7, 0x1350f3f4, 0xc79a971f, 0x35f1141c,
          0x26a1e7e8, 0xd4ca64eb, 0x8ad958cf, 0x78b2dbcc, 0x6be22838, 0x9989ab3b,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 21.3K bytes
    - Viewed (0)
  10. src/buildall.bash

    	echo linux-arm-arm5
    }
    
    selectedtargets() {
    	gettargets | grep -E "$pattern"
    }
    
    # put linux first in the target list to get all the architectures up front.
    linux_targets() {
    	selectedtargets | grep 'linux' | sort
    }
    
    non_linux_targets() {
    	selectedtargets | grep -v 'linux' | sort
    }
    
    # Note words in $targets are separated by both newlines and spaces.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Apr 23 17:45:23 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top