Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for onWrite (0.2 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt

      }
    
      class DelayingSocketFactory(
        val onConnect: Socket.(timeout: Int) -> Unit = {},
        val onRead: Socket.() -> Unit = {},
        val onWrite: Socket.() -> Unit = {},
      ) : DelegatingSocketFactory(getDefault()) {
        override fun createSocket(): Socket {
          return object : Socket() {
            override fun connect(
              endpoint: SocketAddress?,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  2. src/bufio/bufio_test.go

    		for j := 0; j < len(bufsizes); j++ {
    			nwrite := bufsizes[i]
    			bs := bufsizes[j]
    
    			// Write nwrite bytes using buffer size bs.
    			// Check that the right amount makes it out
    			// and that the data is correct.
    
    			w.Reset()
    			buf := NewWriterSize(w, bs)
    			context := fmt.Sprintf("nwrite=%d bufsize=%d", nwrite, bs)
    			n, e1 := buf.Write(data[0:nwrite])
    			if e1 != nil || n != nwrite {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Feb 07 01:08:54 GMT 2025
    - 51.6K bytes
    - Click Count (0)
Back to Top