- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 773 for writeln (0.08 seconds)
-
mockwebserver/src/main/kotlin/mockwebserver3/MockResponseBody.kt
* * Unlike [okhttp3.ResponseBody], this interface is designed to be implemented by writers and not * called by readers. */ public interface MockResponseBody { /** The length of this response in bytes, or -1 if unknown. */ public val contentLength: Long @Throws(IOException::class) public fun writeTo(sink: BufferedSink)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jun 14 16:09:26 GMT 2025 - 1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt
failed = true socketToCancel = this.socket writerToClose = this.writer this.writer = null if (!isWriter && writerToClose != null) { // If the caller isn't the writer thread, get that thread to close the writer. taskQueue.execute("$name writer close", cancelable = false) { writerToClose.closeQuietly() } }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 21.6K bytes - Click Count (0) -
src/bufio/example_test.go
b = append(b, ' ') w.Write(b) } w.Flush() // Output: 1 2 3 4 } // ExampleWriter_ReadFrom demonstrates how to use the ReadFrom method of Writer. func ExampleWriter_ReadFrom() { var buf bytes.Buffer writer := bufio.NewWriter(&buf) data := "Hello, world!\nThis is a ReadFrom example." reader := strings.NewReader(data) n, err := writer.ReadFrom(reader) if err != nil {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Nov 01 21:52:12 GMT 2024 - 5.5K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/AsyncRequestBody.kt
import org.junit.jupiter.api.Assertions.assertTrue /** A duplex request body that keeps the provided sinks so they can be written to later. */ class AsyncRequestBody : RequestBody() { private val requestBodySinks: BlockingQueue<BufferedSink> = LinkedBlockingQueue() override fun contentType(): MediaType? = null override fun writeTo(sink: BufferedSink) { requestBodySinks.add(sink) } override fun isDuplex(): Boolean = true
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt
} if (associatedStreamId == 0) { writer.headers(outFinished, streamId, requestHeaders) } else { require(!client) { "client streams shouldn't have associated stream IDs" } // HTTP/2 has a PUSH_PROMISE frame. writer.pushPromise(associatedStreamId, streamId, requestHeaders) } } if (flushHeaders) { writer.flush() } return stream }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 31.8K bytes - Click Count (0) -
internal/grid/grid_types_msgp_test.go
return } // EncodeMsg implements msgp.Encodable func (z testRequest) EncodeMsg(en *msgp.Writer) (err error) { // map header, size 2 // write "Num" err = en.Append(0x82, 0xa3, 0x4e, 0x75, 0x6d) if err != nil { return } err = en.WriteInt(z.Num) if err != nil { err = msgp.WrapError(err, "Num") return } // write "String" err = en.Append(0xa6, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67) if err != nil { return
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 8.1K bytes - Click Count (0) -
cmd/api-response_test.go
trw.WriteHeader(123) if !trw.headerWritten { t.Fatal("headerWritten was not set by WriteHeader call") } _, err := trw.Write([]byte("hello")) if err != nil { t.Fatalf("Write unexpectedly failed: %v", err) } // Check that WriteHeader and Write were called on the underlying response writer resp := rw.Result() if resp.StatusCode != 123 { t.Fatalf("unexpected status: %v", resp.StatusCode) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 24 04:05:19 GMT 2025 - 5.8K bytes - Click Count (0) -
internal/logger/logrotate.go
return w.pw.Write(p) } // Close closes the writer. // Any accepted writes will be flushed. Any new writes will be rejected. // Once Close() exits, files are synchronized to disk. func (w *Writer) Close() error { w.pw.CloseWithError(nil) if w.f != nil { if err := w.closeCurrentFile(); err != nil { return err } } return nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 5.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java
if (item != null && item.isUpdated()) { try { writer.write(item.toLineString()); writer.write(Constants.LINE_SEPARATOR); return item; } catch (final IOException e) { throw new DictionaryException("Failed to write: " + item, e); } } return null; }
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 15.9K bytes - Click Count (0) -
internal/bucket/replication/datatypes_gen.go
if err != nil { err = msgp.WrapError(err) return } (*z) = Type(zb0001) } return } // EncodeMsg implements msgp.Encodable func (z Type) EncodeMsg(en *msgp.Writer) (err error) { err = en.WriteInt(int(z)) if err != nil { err = msgp.WrapError(err) return } return } // MarshalMsg implements msgp.Marshaler func (z Type) MarshalMsg(b []byte) (o []byte, err error) {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3.4K bytes - Click Count (0)