Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for fromByteArray (0.15 sec)

  1. android/guava/src/com/google/common/primitives/Ints.java

       */
      public static int fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(bytes[0], bytes[1], bytes[2], bytes[3]);
      }
    
      /**
       * Returns the {@code int} value whose byte representation is the given 4 bytes, in big-endian
       * order; equivalent to {@code Ints.fromByteArray(new byte[] {b1, b2, b3, b4})}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/PairedStats.java

       * {@link #toByteArray}.
       *
       * <p><b>Note:</b> No guarantees are made regarding stability of the representation between
       * versions.
       */
      public static PairedStats fromByteArray(byte[] byteArray) {
        checkNotNull(byteArray);
        checkArgument(
            byteArray.length == BYTES,
            "Expected PairedStats.BYTES = %s, got %s",
            BYTES,
            byteArray.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Longs.java

       * flexibility at little cost in readability.
       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 8 elements
       */
      public static long fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(
            bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7]);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Longs.java

       * flexibility at little cost in readability.
       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 8 elements
       */
      public static long fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(
            bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7]);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashTestUtils.java

        }
    
        // Then hash the result array
        byte[] result = hashFunction.hash(hashes, 0);
    
        // interpreted in little-endian order.
        int verification = Integer.reverseBytes(Ints.fromByteArray(result));
    
        if (expected != verification) {
          throw new AssertionError(
              "Expected: "
                  + Integer.toHexString(expected)
                  + " got: "
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/Stats.java

       * #toByteArray}.
       *
       * <p><b>Note:</b> No guarantees are made regarding stability of the representation between
       * versions.
       */
      public static Stats fromByteArray(byte[] byteArray) {
        checkNotNull(byteArray);
        checkArgument(
            byteArray.length == BYTES,
            "Expected Stats.BYTES = %s remaining , got %s",
            BYTES,
            byteArray.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top