- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for 0x80 (0.12 sec)
-
android/guava/src/com/google/common/base/Utf8.java
// Check that 1 <= plane <= 16. Tricky optimized form of: // if (byte1 > (byte) 0xF4 // || byte1 == (byte) 0xF0 && byte2 < (byte) 0x90 // || byte1 == (byte) 0xF4 && byte2 > (byte) 0x8F) || (((byte1 << 28) + (byte2 - (byte) 0x90)) >> 30) != 0 // Third byte trailing-byte test || bytes[index++] > (byte) 0xBF // Fourth byte trailing-byte test
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 10 14:11:51 GMT 2023 - 7K bytes - Viewed (0) -
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. */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.7K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedBytes.java
private UnsignedBytes() {} /** * The largest power of two that can be represented as an unsigned {@code byte}. * * @since 10.0 */ public static final byte MAX_POWER_OF_TWO = (byte) 0x80; /** * The largest value that fits into an unsigned byte. * * @since 13.0 */ public static final byte MAX_VALUE = (byte) 0xFF; private static final int UNSIGNED_MASK = 0xFF; /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 18.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jun 15 20:59:00 GMT 2022 - 11.9K bytes - Viewed (0) -
guava/src/com/google/common/base/Utf8.java
// Check that 1 <= plane <= 16. Tricky optimized form of: // if (byte1 > (byte) 0xF4 // || byte1 == (byte) 0xF0 && byte2 < (byte) 0x90 // || byte1 == (byte) 0xF4 && byte2 > (byte) 0x8F) || (((byte1 << 28) + (byte2 - (byte) 0x90)) >> 30) != 0 // Third byte trailing-byte test || bytes[index++] > (byte) 0xBF // Fourth byte trailing-byte test
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 10 14:11:51 GMT 2023 - 7K bytes - Viewed (0) -
android/guava/src/com/google/common/net/PercentEscaper.java
cp >>>= 4; dest[10] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)]; cp >>>= 2; dest[8] = UPPER_HEX_DIGITS[cp & 0xF]; cp >>>= 4; dest[7] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)]; cp >>>= 2; dest[5] = UPPER_HEX_DIGITS[cp & 0xF]; cp >>>= 4; dest[4] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)]; cp >>>= 2; dest[2] = UPPER_HEX_DIGITS[cp & 0x7];
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 8.7K bytes - Viewed (0) -
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. */
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
assertEquals(hash32, Hashing.combineOrdered(ImmutableList.of(hash32))); assertEquals( HashCode.fromBytes(new byte[] {(byte) 0x80, 0, 0, 0}), Hashing.combineOrdered(ImmutableList.of(hash32, hash32))); assertEquals( HashCode.fromBytes(new byte[] {(byte) 0xa0, 0, 0, 0}), Hashing.combineOrdered(ImmutableList.of(hash32, hash32, hash32))); assertFalse(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 26.5K bytes - Viewed (0) -
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) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 18.7K bytes - Viewed (0) -
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!");
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)