- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,187 for byte (0.02 sec)
-
src/bytes/bytes.go
return Map(c.ToTitle, s) } // ToValidUTF8 treats s as UTF-8-encoded bytes and returns a copy with each run of bytes // representing invalid UTF-8 replaced with the bytes in replacement, which may be empty. func ToValidUTF8(s, replacement []byte) []byte { b := make([]byte, 0, len(s)+len(replacement)) invalid := false // previous byte was from an invalid UTF-8 sequence for i := 0; i < len(s); {
Registered: 2025-05-27 11:13 - Last Modified: 2025-05-12 14:41 - 36K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Utf8.java
} int byte2 = bytes[index++]; 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;
Registered: 2025-05-30 12:43 - Last Modified: 2025-02-12 03:49 - 7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
0x13579bdf, null, "df9b5713"), new ExpectedHashCode( new byte[] {(byte) 0xcd, (byte) 0xab, (byte) 0x00, (byte) 0x00}, 0x0000abcd, null, "cdab0000"), new ExpectedHashCode( new byte[] { (byte) 0xef, (byte) 0xcd, (byte) 0xab, (byte) 0x00,
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-22 03:38 - 13.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
return new String(chars); } private static byte[] toByteArray(int... bytes) { byte[] realBytes = new byte[bytes.length]; for (int i = 0; i < bytes.length; i++) { realBytes[i] = (byte) bytes[i]; } return realBytes; } private static void assertWellFormed(int... bytes) { assertTrue(Utf8.isWellFormed(toByteArray(bytes))); }
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-19 18:03 - 12.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Fingerprint2011Test.java
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 7.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
new byte[] {(byte) 2, (byte) 3, (byte) 4})) .isEqualTo(2); assertThat( Bytes.indexOf( new byte[] {(byte) 2, (byte) 2, (byte) 3, (byte) 4, (byte) 2, (byte) 3, (byte) 4}, new byte[] {(byte) 2, (byte) 3, (byte) 4})) .isEqualTo(1); assertThat( Bytes.indexOf( new byte[] {(byte) 4, (byte) 3, (byte) 2},
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-12 16:12 - 17.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ByteArrayAsListTest.java
Byte[] suffix = {(byte) 86, (byte) 99}; Byte[] all = concat(concat(prefix, elements), suffix); return asList(all).subList(2, elements.length + 2); } } private static Byte[] concat(Byte[] left, Byte[] right) { Byte[] result = new Byte[left.length + right.length]; System.arraycopy(left, 0, result, 0, left.length); System.arraycopy(right, 0, result, left.length, right.length);
Registered: 2025-05-30 12:43 - Last Modified: 2025-01-25 16:19 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
* byte order. * * @return the next four bytes of the input stream, interpreted as an {@code int} in little-endian * byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public int readInt() throws IOException { byte b1 = readAndCheckByte(); byte b2 = readAndCheckByte(); byte b3 = readAndCheckByte();
Registered: 2025-05-30 12:43 - Last Modified: 2025-02-12 03:49 - 7.3K bytes - Viewed (0)