Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for 0xF0 (0.18 sec)

  1. android/guava-tests/test/com/google/common/base/Utf8Test.java

      public void testIsWellFormed_4BytesSamples() {
        // Valid 4 byte.
        assertWellFormed(0xF0, 0xA4, 0xAD, 0xA2);
        // Bad trailing bytes
        assertNotWellFormed(0xF0, 0xA4, 0xAD, 0x7F);
        assertNotWellFormed(0xF0, 0xA4, 0xAD, 0xC0);
        // Special cases for byte2
        assertNotWellFormed(0xF0, 0x8F, 0xAD, 0xA2);
        assertNotWellFormed(0xF4, 0x90, 0xAD, 0xA2);
      }
    
      /** Tests some hard-coded test cases. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Utf8.java

            if (byte2 > (byte) 0xBF
                // Overlong? 5 most significant bits must not all be zero.
                || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0)
                // Check for illegal surrogate codepoints.
                || (byte1 == (byte) 0xED && byte2 >= (byte) 0xA0)
                // Third byte trailing-byte test.
                || bytes[index++] > (byte) 0xBF) {
              return false;
            }
          } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

            new byte[] {
              0x01, (byte) 0xc0, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00,
              0x14, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x04, 0x00,
              0x00, 0x00, 0x00, 0x14,
              0x00, 0x00, 0x00, 0x18,
              0x28, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00,
              0x02, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

      }
    
      public void testBase32InvalidDecodings() {
        // These contain bytes not in the decodabet.
        assertFailsToDecode(base32(), "A ", "Unrecognized character: 0x20");
        assertFailsToDecode(base32(), "Wf2!", "Unrecognized character: f");
        // This sentence just isn't base32() encoded.
        assertFailsToDecode(base32(), "let's not talk of love or chains!");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        assertEquals(asList("a", "b", "c", "d"), list);
        b.set(0, "f");
        assertEquals(asList("a", "b", "c", "d"), list);
      }
    
      public void testComplexBuilder() {
        List<Integer> colorElem = asList(0x00, 0x33, 0x66, 0x99, 0xCC, 0xFF);
        ImmutableList.Builder<Integer> webSafeColorsBuilder = ImmutableList.builder();
        for (Integer red : colorElem) {
          for (Integer green : colorElem) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashTestUtils.java

        int keyBits = 32;
        int hashBits = function.bits();
    
        // output loop tests input bit
        for (int i = 0; i < keyBits; i++) {
          int same = 0x0; // bitset for output bits with same values
          int diff = 0x0; // bitset for output bits with different values
          int count = 0;
          // originally was 2 * Math.log(...), making it try more times to avoid flakiness issues
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

          // TODO(cpovirk): Use SourceCodeEscapers if it is added to Guava.
          StringBuilder escapedInput = new StringBuilder();
          for (char c : input.toCharArray()) {
            if (c >= 0x20 && c <= 0x7E) {
              escapedInput.append(c);
            } else {
              escapedInput.append(String.format("\\u%04x", (int) c));
            }
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/HashCode.java

       */
      public abstract long asLong();
    
      /**
       * If this hashcode has enough bits, returns {@code asLong()}, otherwise returns a {@code long}
       * value with {@code asBytes()} as the least-significant bytes and {@code 0x00} as the remaining
       * most-significant bytes.
       *
       * @since 14.0 (since 11.0 as {@code Hashing.padToLong(HashCode)})
       */
      public abstract long padToLong();
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertThat(set).containsExactly("a", "b", "c", "d", "e").inOrder();
      }
    
      static final int LAST_COLOR_ADDED = 0x00BFFF;
    
      public void testComplexBuilder() {
        List<Integer> colorElem = asList(0x00, 0x33, 0x66, 0x99, 0xCC, 0xFF);
        // javac won't compile this without "this.<Integer>"
        ImmutableSet.Builder<Integer> webSafeColorsBuilder = this.<Integer>builder();
        for (Integer red : colorElem) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/BaseEncodingTest.java

      }
    
      public void testBase32InvalidDecodings() {
        // These contain bytes not in the decodabet.
        assertFailsToDecode(base32(), "A ", "Unrecognized character: 0x20");
        assertFailsToDecode(base32(), "Wf2!", "Unrecognized character: f");
        // This sentence just isn't base32() encoded.
        assertFailsToDecode(base32(), "let's not talk of love or chains!");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
Back to top