- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for b2 (0.11 sec)
-
src/bytes/compare_test.go
b1 := []byte("Hello Gophers!") b2 := []byte("Hello Gophers!") for i := 0; i < b.N; i++ { if Compare(b1, b2) != 0 { b.Fatal("b1 != b2") } } } func BenchmarkCompareBytesToNil(b *testing.B) { b1 := []byte("Hello Gophers!") var b2 []byte for i := 0; i < b.N; i++ { if Compare(b1, b2) != 1 { b.Fatal("b1 > b2 failed") } } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jul 13 23:11:42 GMT 2023 - 6.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
* 122 : Mapped inline to the sequence: [b2]. * 123 : Mapped inline to the sequence: [b2a]. * 124 : Mapped inline to the sequence: [b2, b3]. * 125 : Mapped inline to the sequence: [b2a, b3]. * 126 : Mapped inline to the sequence: [b2, b3a]. * 127 : Mapped inline to the sequence: [b2a, b3a]. * * The range goes until the beginning of the next range. * * When b2 and b3 are unused, their values are set to 0x2d ('-').
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Apr 02 11:39:58 GMT 2024 - 9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/CharsetsTest.java
byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); byte[] b3 = "????".getBytes(Charsets.US_ASCII); byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); // Assert they are all equal (using the transitive property) assertTrue(Arrays.equals(b1, b2)); assertTrue(Arrays.equals(b2, b3)); assertTrue(Arrays.equals(b3, b4));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu May 04 09:41:29 GMT 2023 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
*/ @CanIgnoreReturnValue // to skip some bytes @Override public int readUnsignedShort() throws IOException { byte b1 = readAndCheckByte(); byte b2 = readAndCheckByte(); return Ints.fromBytes((byte) 0, (byte) 0, b2, b1); } /** * Reads an integer as specified by {@link DataInputStream#readInt()}, except using little-endian * byte order. *
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) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
ByteSource b1 = ByteSource.wrap(new byte[] {0, 1, 2, 3}); ByteSource b2 = ByteSource.wrap(new byte[0]); ByteSource b3 = ByteSource.wrap(new byte[] {4, 5}); byte[] expected = {0, 1, 2, 3, 4, 5}; assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3)).read()); assertArrayEquals(expected, ByteSource.concat(b1, b2, b3).read());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.9K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt
private val mappedTo: ByteString, ) : MappedRange { val b1: Int get() { val b3bit8 = mappedTo[0] and 0x80 != 0 return if (b3bit8) 123 else 122 } val b2: Int get() = mappedTo[0] and 0x7f } data class Inline2( override val rangeStart: Int, private val mappedTo: ByteString, ) : MappedRange { val b1: Int get() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/MoreObjectsTest.java
assertSame(s1, s2); Long n1 = 42L; Long n2 = MoreObjects.firstNonNull(null, n1); assertSame(n1, n2); Boolean b1 = true; Boolean b2 = MoreObjects.firstNonNull(b1, null); assertSame(b1, b2); } public void testFirstNonNull_throwsNullPointerException() { try { MoreObjects.firstNonNull(null, null); fail(); } catch (NullPointerException expected) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:24:55 GMT 2024 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
ByteSource b1 = ByteSource.wrap(new byte[] {0, 1, 2, 3}); ByteSource b2 = ByteSource.wrap(new byte[0]); ByteSource b3 = ByteSource.wrap(new byte[] {4, 5}); byte[] expected = {0, 1, 2, 3, 4, 5}; assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3)).read()); assertArrayEquals(expected, ByteSource.concat(b1, b2, b3).read());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharsetsTest.java
byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); byte[] b3 = "????".getBytes(Charsets.US_ASCII); byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); // Assert they are all equal (using the transitive property) assertTrue(Arrays.equals(b1, b2)); assertTrue(Arrays.equals(b2, b3)); assertTrue(Arrays.equals(b3, b4));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu May 04 09:41:29 GMT 2023 - 2.5K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/repository/legacy/WagonB.java
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 1.1K bytes - Viewed (0)