- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for GetBytes (0.12 sec)
-
maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java
return null; } @Override public InputStream openStream() throws IOException { return new ByteArrayInputStream(buffer.toString().getBytes(StandardCharsets.UTF_8)); } @Override public String getLocation() { return artifact.getId(); } @Override
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon May 13 16:34:29 UTC 2024 - 57.1K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0) -
cmd/storage-datatypes_gen_test.go
bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } } func BenchmarkUnmarshalBaseOptions(b *testing.B) { v := BaseOptions{} bts, _ := v.MarshalMsg(nil) b.ReportAllocs() b.SetBytes(int64(len(bts))) b.ResetTimer() for i := 0; i < b.N; i++ {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 62.6K bytes - Viewed (0) -
src/math/big/int_test.go
i := 0 for i < len(z) && z[i] == 0 { i++ } return z[i:] } func checkMul(a, b []byte) bool { var x, y, z1 Int x.SetBytes(a) y.SetBytes(b) z1.Mul(&x, &y) var z2 Int z2.SetBytes(mulBytes(a, b)) return z1.Cmp(&z2) == 0 } func TestMul(t *testing.T) { if err := quick.Check(checkMul, nil); err != nil { t.Error(err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/bytes/bytes_test.go
for _, n := range sizes { if isRaceBuilder && n > 4<<10 { continue } b.Run(valName(n), func(b *testing.B) { if len(bmbuf) < n { bmbuf = make([]byte, n) } b.SetBytes(int64(n)) f(b, n) }) } } var indexSizes = []int{10, 32, 4 << 10, 4 << 20, 64 << 20} var isRaceBuilder = strings.HasSuffix(testenv.Builder(), "-race")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0) -
src/strings/strings_test.go
benchStr := Repeat(benchmarkString, (indexSizes[len(indexSizes)-1]+len(benchmarkString)-1)/len(benchmarkString)) benchFunc := func(b *testing.B, benchStr string) { b.SetBytes(int64(len(benchStr))) for i := 0; i < b.N; i++ { Count(benchStr, "=") } } for _, size := range indexSizes { b.Run(fmt.Sprintf("%d", size), func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/crypto/tls/tls_test.go
panic(fmt.Errorf("handshake: %v", err)) } if _, err := io.CopyBuffer(srv, srv, buf); err != nil { panic(fmt.Errorf("copy buffer: %v", err)) } } }() b.SetBytes(totalBytes) clientConfig := testConfig.Clone() clientConfig.CipherSuites = nil // the defaults may prefer faster ciphers clientConfig.DynamicRecordSizingDisabled = dynamicRecordSizingDisabled
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0) -
src/math/rand/v2/chacha8_test.go
var t uint64 for n := b.N; n > 0; n-- { t += p.Uint64() } Sink = t } func BenchmarkChaCha8Read(b *testing.B) { p := NewChaCha8([32]byte{1, 2, 3, 4, 5}) buf := make([]byte, 32) b.SetBytes(32) var t uint8 for n := b.N; n > 0; n-- { p.Read(buf) t += buf[0] } Sink = uint64(t) } // Golden output test to make sure algorithm never changes,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 55K bytes - Viewed (0)