- Sort Score
- Result 10 results
- Languages All
Results 71 - 76 of 76 for textbyte (0.17 sec)
-
android/guava-tests/test/com/google/common/primitives/IntsTest.java
// total overkill, but, it takes 0.1 sec so why not... for (int i = 0; i < 10000; i++) { int num = r.nextInt(); assertThat(Ints.fromByteArray(Ints.toByteArray(num))).isEqualTo(num); r.nextBytes(b); assertThat(Ints.toByteArray(Ints.fromByteArray(b))).isEqualTo(b); } } public void testEnsureCapacity() { assertThat(Ints.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 28.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
byte[] b = new byte[Longs.BYTES]; for (int i = 0; i < 1000; i++) { long num = r.nextLong(); assertThat(Longs.fromByteArray(Longs.toByteArray(num))).isEqualTo(num); r.nextBytes(b); long value = Longs.fromByteArray(b); assertWithMessage("" + value).that(Arrays.equals(b, Longs.toByteArray(value))).isTrue(); } } public void testEnsureCapacity() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 30K bytes - Viewed (0) -
src/math/big/int_test.go
// trim leading zero bytes since Bytes() won't return them // (was issue 12231) for len(b) > 0 && b[0] == 0 { b = b[1:] } b2 := new(Int).SetBytes(b).Bytes() return bytes.Equal(b, b2) } func TestBytes(t *testing.T) { if err := quick.Check(checkBytes, nil); err != nil { t.Error(err) } } func checkQuo(x, y []byte) bool { u := new(Int).SetBytes(x) v := new(Int).SetBytes(y)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
okhttp-android/src/main/baseline-prof.txt
HSPLokio/AsyncTimeout;-><clinit>()V HSPLokio/AsyncTimeout;-><init>()V HSPLokio/AsyncTimeout;->enter()V HSPLokio/AsyncTimeout;->exit()Z HSPLokio/Buffer;-><init>()V HSPLokio/Buffer;->exhausted()Z HSPLokio/Buffer;->getByte(J)B HSPLokio/Buffer;->indexOfElement(Lokio/ByteString;)J HSPLokio/Buffer;->rangeEquals(JLokio/ByteString;)Z HSPLokio/Buffer;->read(Lokio/Buffer;J)J HSPLokio/Buffer;->read([BII)I HSPLokio/Buffer;->readByte()B
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Mar 21 11:22:00 UTC 2022 - 127.9K bytes - Viewed (1) -
src/internal/trace/traceviewer/static/trace_viewer_full.html
return data[position++];} function getWord(){const low=getByte();const high=getByte();return(high<<8)+low;} function skipBytes(amount){position+=amount;} function skipZeroTerminatedString(){while(getByte()!==0){}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 2.5M bytes - Viewed (1) -
src/reflect/all_test.go
for _, tt := range tagGetTests { if v := tt.Tag.Get(tt.Key); v != tt.Value { t.Errorf("StructTag(%#q).Get(%#q) = %#q, want %#q", tt.Tag, tt.Key, v, tt.Value) } } } func TestBytes(t *testing.T) { shouldPanic("on int Value", func() { ValueOf(0).Bytes() }) shouldPanic("of non-byte slice", func() { ValueOf([]string{}).Bytes() }) type S []byte x := S{1, 2, 3, 4}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)