Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for writeNL (0.16 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

              url = server.url("/"),
              body =
                object : ForwardingRequestBody(transferKind.newRequestBody("def")) {
                  override fun writeTo(sink: BufferedSink) {
                    sinkReference.set(sink)
                    super.writeTo(sink)
                  }
                },
            ),
          )
        assertThat(readAscii(response.body.byteStream(), Int.MAX_VALUE))
          .isEqualTo("abc")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

          override fun contentLength(): Long {
            return if (chunked) -1L else size
          }
    
          override fun writeTo(sink: BufferedSink) {
            var count = 0
            while (count < size) {
              sink.write(buffer, 0, Math.min(size - count, writeSize.toLong()).toInt())
              count += writeSize
            }
          }
        }
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/data.go

    // writeBlocks writes a specified chunk of symbols to the output buffer. It
    // breaks the write up into ≥blockSize chunks to write them out, and schedules
    // as many goroutines as necessary to accomplish this task. This call then
    // blocks, waiting on the writes to complete. Note that we use the sem parameter
    // to limit the number of concurrent writes taking place.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  4. src/net/http/server.go

    func (h extraHeader) Write(w *bufio.Writer) {
    	if h.date != nil {
    		w.Write(headerDate)
    		w.Write(h.date)
    		w.Write(crlf)
    	}
    	if h.contentLength != nil {
    		w.Write(headerContentLength)
    		w.Write(h.contentLength)
    		w.Write(crlf)
    	}
    	for i, v := range []string{h.contentType, h.connection, h.transferEncoding} {
    		if v != "" {
    			w.Write(extraHeaderKeys[i])
    			w.Write(colonSpace)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top