Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for big (0.18 sec)

  1. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

            theUnsafe.putLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET, value);
          }
        },
        UNSAFE_BIG_ENDIAN {
          @Override
          public long getLongLittleEndian(byte[] array, int offset) {
            long bigEndian = theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET);
            // The hardware is big-endian, so we need to reverse the order of the bytes.
            return Long.reverseBytes(bigEndian);
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java

        assertEquals(expected, murmur3_128(seed).hashBytes(input));
        assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash());
      }
    
      /** Returns a {@link HashCode} for a sequence of longs, in big-endian order. */
      private static HashCode toHashCode(long... longs) {
        ByteBuffer bb = ByteBuffer.wrap(new byte[longs.length * 8]).order(ByteOrder.LITTLE_ENDIAN);
        for (long x : longs) {
          bb.putLong(x);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

      // trivial because the divisor is bigger than the dividend.
      // Using remainder here does not give us a uniform distribution but it should
      // not have a big impact on the measurement.
      private static long randomDivisor(long dividend) {
        long r = RANDOM_SOURCE.nextLong();
        if (dividend == -1) {
          return r;
        } else {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Charsets.java

       * java.nio.charset.StandardCharsets#UTF_8} instead.
       *
       */
      public static final Charset UTF_8 = Charset.forName("UTF-8");
    
      /**
       * UTF-16BE: sixteen-bit UCS Transformation Format, big-endian byte order.
       *
       * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
       * java.nio.charset.StandardCharsets#UTF_16BE} instead.
       *
       */
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

     * char}, {@code short}, {@code int}, {@code float}, {@code double}, and {@code long} values.
     *
     * <p><b>Note:</b> This class intentionally violates the specification of its supertype {@code
     * DataOutput}, which explicitly requires big-endian byte order.
     *
     * @author Chris Nokleberg
     * @author Keith Bottner
     * @since 8.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

              // yes, that's a lot of sinks!
              sinks.add(new Sink(chunkSize, bufferSize));
              // For convenience, testing only with big endianness, to match DataOutputStream.
              // I regard highly unlikely that both the little endianness tests above and this one
              // passes, and there is still a little endianness bug lurking around.
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java

        assertEquals(expected, murmur3_128(seed).hashBytes(input));
        assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash());
      }
    
      /** Returns a {@link HashCode} for a sequence of longs, in big-endian order. */
      private static HashCode toHashCode(long... longs) {
        ByteBuffer bb = ByteBuffer.wrap(new byte[longs.length * 8]).order(ByteOrder.LITTLE_ENDIAN);
        for (long x : longs) {
          bb.putLong(x);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

              // yes, that's a lot of sinks!
              sinks.add(new Sink(chunkSize, bufferSize));
              // For convenience, testing only with big endianness, to match DataOutputStream.
              // I regard highly unlikely that both the little endianness tests above and this one
              // passes, and there is still a little endianness bug lurking around.
            }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

     * short}, {@code int}, {@code float}, {@code double}, and {@code long} values.
     *
     * <p><b>Note:</b> This class intentionally violates the specification of its supertype {@code
     * DataInput}, which explicitly requires big-endian byte order.
     *
     * @author Chris Nokleberg
     * @author Keith Bottner
     * @since 8.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Charsets.java

       * java.nio.charset.StandardCharsets#UTF_8} instead.
       *
       */
      public static final Charset UTF_8 = Charset.forName("UTF-8");
    
      /**
       * UTF-16BE: sixteen-bit UCS Transformation Format, big-endian byte order.
       *
       * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
       * java.nio.charset.StandardCharsets#UTF_16BE} instead.
       *
       */
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top