Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 264 for stinky (0.07 sec)

  1. test/fixedbugs/issue29362.go

    // arguments as pointers when they aren't.
    
    package main
    
    import (
    	"unsafe"
    )
    
    var badPtr uintptr
    
    var sink []byte
    
    func init() {
    	// Allocate large enough to use largeAlloc.
    	b := make([]byte, 1<<16-1)
    	sink = b // force heap allocation
    	//  Any space between the object and the end of page is invalid to point to.
    	badPtr = uintptr(unsafe.Pointer(&b[len(b)-1])) + 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 03 20:17:01 UTC 2019
    - 879 bytes
    - Viewed (0)
  2. src/math/rand/v2/rand_test.go

    		t += Int64()
    	}
    	Sink = uint64(t)
    }
    
    func BenchmarkGlobalInt64Parallel(b *testing.B) {
    	b.RunParallel(func(pb *testing.PB) {
    		var t int64
    		for pb.Next() {
    			t += Int64()
    		}
    		atomic.AddUint64(&Sink, uint64(t))
    	})
    }
    
    func BenchmarkGlobalUint64(b *testing.B) {
    	var t uint64
    	for n := b.N; n > 0; n-- {
    		t += Uint64()
    	}
    	Sink = t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/CharSink.java

        return (writer instanceof BufferedWriter)
            ? (BufferedWriter) writer
            : new BufferedWriter(writer);
      }
    
      /**
       * Writes the given character sequence to this sink.
       *
       * @throws IOException if an I/O error while writing to this sink
       */
      public void write(CharSequence charSequence) throws IOException {
        checkNotNull(charSequence);
    
        Closer closer = Closer.create();
        try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_andor_test.go

    		}
    	}
    }
    
    func BenchmarkAnd32(b *testing.B) {
    	var x [128]uint32 // give x its own cache line
    	sink = &x
    	for i := 0; i < b.N; i++ {
    		atomic.And32(&x[63], uint32(i))
    	}
    }
    
    func BenchmarkAnd32Parallel(b *testing.B) {
    	var x [128]uint32 // give x its own cache line
    	sink = &x
    	b.RunParallel(func(pb *testing.PB) {
    		i := uint32(0)
    		for pb.Next() {
    			atomic.And32(&x[63], i)
    			i++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 27 20:49:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

        }
        return suite;
      }
    
      private ByteSink sink;
    
      ByteSinkTester(
          ByteSinkFactory factory, byte[] data, String suiteName, String caseDesc, Method method) {
        super(factory, data, suiteName, caseDesc, method);
      }
    
      @Override
      protected void setUp() throws Exception {
        sink = factory.createSink();
      }
    
      public void testOpenStream() throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

            sink.writeByte(ranges[rangesIndex + 2].code or 0x80)
            sink.writeByte(ranges[rangesIndex + 3].code)
          }
          126 -> {
            // Mapped inline to the sequence: [b2, b3a].
            sink.writeByte(ranges[rangesIndex + 2].code)
            sink.writeByte(ranges[rangesIndex + 3].code or 0x80)
          }
          127 -> {
            // Mapped inline to the sequence: [b2a, b3a].
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Apr 02 11:39:58 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharSinkTester.java

      private CharSink sink;
    
      public CharSinkTester(
          CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) {
        super(factory, string, suiteName, caseDesc, method);
        this.lines = getLines(string);
        this.expectedLines = getLines(expected);
      }
    
      @Override
      protected void setUp() throws Exception {
        this.sink = factory.createSink();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt

        val requestBody =
          object : RequestBody() {
            override fun contentType() = MEDIA_TYPE_MARKDOWN
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Numbers\n")
              sink.writeUtf8("-------\n")
              for (i in 2..997) {
                sink.writeUtf8(String.format(" * $i = ${factor(i)}\n"))
              }
            }
    
            private fun factor(n: Int): String {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue27557.go

    package p
    
    var sink interface{}
    
    func f1() {
    	var t T
    	f := t.noescape // ERROR "t.noescape does not escape"
    	f()
    }
    
    func f2() {
    	var t T       // ERROR "moved to heap"
    	f := t.escape // ERROR "t.escape does not escape"
    	f()
    }
    
    func f3() {
    	var t T        // ERROR "moved to heap"
    	f := t.returns // ERROR "t.returns does not escape"
    	sink = f()
    }
    
    type T struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:41:07 UTC 2021
    - 949 bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/internal/ThrottledSink.kt

    package mockwebserver3.internal
    
    import okio.Buffer
    import okio.Sink
    
    /**
     * A sink that sleeps [periodDelayNanos] every [bytesPerPeriod] bytes. Unlike [okio.Throttler],
     * this permits any interval to be used.
     */
    internal class ThrottledSink(
      private val delegate: Sink,
      private val bytesPerPeriod: Long,
      private val periodDelayNanos: Long,
    ) : Sink by delegate {
      private var bytesWrittenSinceLastDelay = 0L
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top