- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 368 for sink3 (0.07 sec)
-
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) -
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) -
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) -
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) -
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) -
src/go/doc/comment/testdata/link3.txt
Russ Cox <******@****.***> 1649017006 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:43 UTC 2022 - 178 bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactory.java
* A test factory for byte or char sources or sinks. In addition to creating sources or sinks, the * factory specifies what content should be expected to be read from a source or contained in a sink * given the content data that was used to create the source or that was written to the sink. * * <p>A single {@code SourceSinkFactory} implementation generally corresponds to one specific way of
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3K bytes - Viewed (0)