- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 371 for sink2 (0.05 sec)
-
src/runtime/testdata/testprog/checkptr.go
p := new([4]int64) sink2 = unsafe.Slice(&p[1], 3) } func CheckPtrSliceFail() { p := new(int64) sink2 = p sink2 = unsafe.Slice(p, 100) } func CheckPtrStringOK() { p := new([4]byte) sink2 = unsafe.String(&p[1], 3) } func CheckPtrStringFail() { p := new(byte) sink2 = p sink2 = unsafe.String(p, 100) } func CheckPtrAlignmentNested() { s := make([]int8, 100)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 17:15:15 UTC 2022 - 2.4K bytes - Viewed (0) -
test/escape5.go
z = &t.x[i] *z = 2 } } // Issue 15730: copy causes unnecessary escape var sink []byte var sink2 []int var sink3 []*int func f15730a(args ...interface{}) { // ERROR "args does not escape" for _, arg := range args { switch a := arg.(type) { case string: copy(sink, a) } } } func f15730b(args ...interface{}) { // ERROR "args does not escape"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 5.3K bytes - Viewed (0) -
src/runtime/testdata/testprog/gc.go
if x[0] != 42 { panic("FAIL") } } defer fn() x[0] = 42 runtime.GC() runtime.GC() runtime.GC() } //go:noinline func escape(x any) { sink2 = x; sink2 = nil } var sink2 any // Test zombie object detection and reporting. func GCZombie() { // Allocate several objects of unusual size (so free slots are // unlikely to all be re-allocated by the runtime).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 12.1K bytes - Viewed (0) -
src/io/multi_test.go
testMultiWriter(t, struct { Writer fmt.Stringer }{sink, sink}) } func TestMultiWriter_String(t *testing.T) { testMultiWriter(t, new(bytes.Buffer)) } // Test that a multiWriter.WriteString calls results in at most 1 allocation, // even if multiple targets don't support WriteString. func TestMultiWriter_WriteStringSingleAlloc(t *testing.T) { var sink1, sink2 bytes.Buffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:49:32 UTC 2022 - 10K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
val sink1 = stream1.getSink().buffer() val sink2 = stream2.getSink().buffer() sink1.writeUtf8("abc") assertFailsWith<IOException> { sink2.writeUtf8("abc") sink2.flush() }.also { expected -> assertThat(expected.message).isEqualTo("stream was reset: REFUSED_STREAM") } sink1.writeUtf8("def") sink1.close()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 75.4K bytes - Viewed (0) -
test/fixedbugs/issue29504.go
}) shouldPanic(func() { var a [3]int sinkS = a /*line :999999:1*/ [ /*line :1100:1*/ i:] }) shouldPanic(func() { var a []int sinkS = a /*line :999999:1*/ [ /*line :1200:1*/ i:] }) shouldPanic(func() { var a [3]int sinkS = a /*line :999999:1*/ [: /*line :1300:1*/ i] }) shouldPanic(func() { var a []int sinkS = a /*line :999999:1*/ [: /*line :1400:1*/ i] })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 21:30:30 UTC 2019 - 2.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/libgo7/sink.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "C" var sink []byte //export GoFunction7 func GoFunction7() { sink = make([]byte, 4096) } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 291 bytes - Viewed (0) -
src/image/color/ycbcr_test.go
for i := 0; i < b.N; i++ { sink32, sink32, sink32, sink32 = c.RGBA() } }) b.Run("128", func(b *testing.B) { c := YCbCr{128, 128, 128} for i := 0; i < b.N; i++ { sink32, sink32, sink32, sink32 = c.RGBA() } }) b.Run("255", func(b *testing.B) { c := YCbCr{255, 255, 255} for i := 0; i < b.N; i++ { sink32, sink32, sink32, sink32 = c.RGBA() } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 07:51:17 UTC 2016 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
Sink sink = new Sink(4); sink.putShort((short) 0x0201); HashCode unused = sink.hash(); sink.assertInvariants(2); sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros } public void testInt() { Sink sink = new Sink(4); sink.putInt(0x04030201); HashCode unused = sink.hash(); sink.assertInvariants(4); sink.assertBytes(new byte[] {1, 2, 3, 4}); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 8.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
long value = random.nextLong(); for (PrimitiveSink sink : sinks) { sink.putLong(value); } } }, PUT_FLOAT() { @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { float value = random.nextFloat(); for (PrimitiveSink sink : sinks) { sink.putFloat(value); } } },
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 25.3K bytes - Viewed (0)