- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 21 for b1 (0.02 seconds)
-
src/bytes/compare_test.go
b.StopTimer() pattern := []byte("Hello Gophers!") b1 := make([]byte, 0, 1<<20+len(pattern)) for len(b1) < 1<<20 { b1 = append(b1, pattern...) } b2 := make([]byte, len(b1)) copy(b2, b1) b.StartTimer() for j := 0; j < b.N; j++ { if Compare(b1[offset:], b2[offset:]) != 0 { b.Fatal("b1 != b2") } } b.SetBytes(int64(len(b1[offset:]))) }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jul 13 23:11:42 GMT 2023 - 6.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketWriter.kt
sinkBuffer.writeByte(b0) var b1 = 0 if (isClient) { b1 = b1 or B1_FLAG_MASK } when { dataSize <= PAYLOAD_BYTE_MAX -> { b1 = b1 or dataSize.toInt() sinkBuffer.writeByte(b1) } dataSize <= PAYLOAD_SHORT_MAX -> { b1 = b1 or PAYLOAD_SHORT sinkBuffer.writeByte(b1) sinkBuffer.writeShort(dataSize.toInt()) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 6K bytes - Click Count (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
return (int) in.skip(n); } @CanIgnoreReturnValue // to skip a byte @Override public int readUnsignedByte() throws IOException { int b1 = in.read(); if (b1 < 0) { throw new EOFException(); } return b1; } /** * Reads an unsigned {@code short} as specified by {@link DataInputStream#readUnsignedShort()}, * except using little-endian byte order. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 7.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java
List<SynonymItem> itemList = new ArrayList<>(); itemList.add(new SynonymItem(1, new String[] { "a1" }, new String[] { "A1" })); itemList.add(new SynonymItem(2, new String[] { "b1", "b2" }, new String[] { "B1" })); itemList.add(new SynonymItem(3, new String[] { "c1" }, new String[] { "C1", "C2" })); itemList.add(new SynonymItem(4, new String[] { "x1", "X1" }, new String[] { "x1", "X1" }));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 9.2K bytes - Click Count (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
* that follows. * * b1 * -- * * This is either a mapping decision or the length of the mapped output, according to this table: * * ``` * 0..63 : Length of the UTF-16 sequence that this range maps to. The offset is b2b3. * 64..79 : Offset by a fixed negative offset. The bottom 4 bits of b1 are the top 4 bits of the offset.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 9K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/CharsetsTest.java
public void testWhyUsAsciiIsDangerous() { 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) assertThat(b1).isEqualTo(b2); assertThat(b2).isEqualTo(b3);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 12:37:39 GMT 2026 - 2.6K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Hasher.java
* following three expressions all generate colliding hash codes: * * {@snippet : * newHasher().putByte(b1).putByte(b2).putByte(b3).hash() * newHasher().putByte(b1).putBytes(new byte[] { b2, b3 }).hash() * newHasher().putBytes(new byte[] { b1, b2, b3 }).hash() * } * * <p>If you wish to avoid this, you should either prepend or append the size of each chunk. Keep inCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 5.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/CharsetsTest.java
public void testWhyUsAsciiIsDangerous() { 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) assertThat(b1).isEqualTo(b2); assertThat(b2).isEqualTo(b3);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 12:37:39 GMT 2026 - 2.6K bytes - Click Count (0) -
cmd/dummy-data-generator_test.go
func cmpReaders(r1, r2 io.Reader) (bool, string) { bufLen := 32 * 1024 b1, b2 := make([]byte, bufLen), make([]byte, bufLen) for i := 0; true; i++ { n1, e1 := io.ReadFull(r1, b1) n2, e2 := io.ReadFull(r2, b2) if n1 != n2 { return false, fmt.Sprintf("Read %d != %d bytes from the readers", n1, n2) } if !bytes.Equal(b1[:n1], b2[:n2]) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.8K bytes - Click Count (0)