Pipe.write

SendStatus write(scope const(ubyte)[] data) @trusted

Write bytes to the pipe (write end only).

data is copied (TERMINOLOGY.md) into the internal send queue. The caller may reuse the buffer immediately.

Backpressure: returns a SendError with reason SendErrorReason.PRESSURE when the internal queue would exceed the configured highWaterMark or the global EventLoop send queue limit. The caller must wait for onWritable before retrying.

Parameters

dataBytes to write.

Returns