Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for Decode (0.24 sec)

  1. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        }
      }
    
      private static String encode(String str) {
        return BaseEncoding.base64().encode(str.getBytes(Charsets.UTF_8));
      }
    
      private static final Function<String, String> DECODE_FUNCTION =
          new Function<String, String>() {
            @Override
            public String apply(String input) {
              return new String(BaseEncoding.base64().decode(input), Charsets.UTF_8);
            }
          };
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

      static class MaxCodePoint {
        final int value;
    
        /**
         * Convert the input string to a code point. Accepts regular decimal numerals, hex strings, and
         * some symbolic names meaningful to humans.
         */
        private static int decode(String userFriendly) {
          try {
            return Integer.decode(userFriendly);
          } catch (NumberFormatException ignored) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java

          decodingInputs[i] = encoding.encoding.encode(encodingInputs[i]);
        }
      }
    
      @Benchmark
      public int encode(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          tmp += System.identityHashCode(encoding.encoding.encode(encodingInputs[i & INPUTS_MASK]));
        }
        return tmp;
      }
    
      @Benchmark
      public int decode(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
    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)
  4. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.decode(decimalStrings[j]);
        }
        return tmp;
      }
    
      @Benchmark
      long parseDecode16(int reps) {
        long tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.decode(prefixedHexStrings[j]);
        }
        return tmp;
      }
    
      @Benchmark
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        assertThat(UnsignedInts.decode("0xffffffff")).isEqualTo(0xffffffff);
        assertThat(UnsignedInts.decode("01234567")).isEqualTo(01234567); // octal
        assertThat(UnsignedInts.decode("#12345678")).isEqualTo(0x12345678);
        assertThat(UnsignedInts.decode("76543210")).isEqualTo(76543210);
        assertThat(UnsignedInts.decode("0x13579135")).isEqualTo(0x13579135);
        assertThat(UnsignedInts.decode("0X13579135")).isEqualTo(0x13579135);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        }
      }
    
      private static String encode(String str) {
        return BaseEncoding.base64().encode(str.getBytes(Charsets.UTF_8));
      }
    
      private static final Function<String, String> DECODE_FUNCTION =
          new Function<String, String>() {
            @Override
            public String apply(String input) {
              return new String(BaseEncoding.base64().decode(input), Charsets.UTF_8);
            }
          };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/BaseEncodingTest.java

        assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded);
      }
    
      private static void testDecodes(BaseEncoding encoding, String encoded, String decoded) {
        assertThat(encoding.canDecode(encoded)).isTrue();
        assertThat(encoding.decode(encoded)).isEqualTo(decoded.getBytes(UTF_8));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Shorts.java

      /**
       * Returns the value nearest to {@code value} which is within the closed range {@code [min..max]}.
       *
       * <p>If {@code value} is within the range {@code [min..max]}, {@code value} is returned
       * unchanged. If {@code value} is less than {@code min}, {@code min} is returned, and if {@code
       * value} is greater than {@code max}, {@code max} is returned.
       *
       * @param value the {@code short} value to constrain
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Longs.java

      /**
       * Returns the value nearest to {@code value} which is within the closed range {@code [min..max]}.
       *
       * <p>If {@code value} is within the range {@code [min..max]}, {@code value} is returned
       * unchanged. If {@code value} is less than {@code min}, {@code min} is returned, and if {@code
       * value} is greater than {@code max}, {@code max} is returned.
       *
       * @param value the {@code long} value to constrain
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/BaseEncoding.java

     *
     * <pre>{@code
     * BaseEncoding.base32().encode("foo".getBytes(Charsets.US_ASCII))
     * }</pre>
     *
     * <p>returns the string {@code "MZXW6==="}, and
     *
     * <pre>{@code
     * byte[] decoded = BaseEncoding.base32().decode("MZXW6===");
     * }</pre>
     *
     * <p>...returns the ASCII bytes of the string {@code "foo"}.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
Back to top