Inheritance diagram for IConduit:
Public Types | |
enum | { Eof = uint.max } |
Public Member Functions | |
uint | read (void[] dst) |
uint | write (void[] src) |
bool | flush (void[] src) |
IConduit | copy (IConduit source) |
void | attach (IConduitFilter filter) |
uint | bufferSize () |
bool | isReadable () |
bool | isWritable () |
bool | isSeekable () |
bool | isTextual () |
void | close () |
Additional kinds of conduit are easy to construct: one either subclasses mango.io.Conduit, or implements mango.io.model.IConduit. A conduit typically reads and writes from/to an IBuffer in large chunks, typically the entire buffer. Alternatively, one can invoke read(dst[]) and/or write(src[]) directly.
Definition at line 56 of file IConduit.d.
|
Declare the End Of File identifer Definition at line 64 of file IConduit.d. |
|
read from conduit into a target array Reimplemented in Conduit. Referenced by Buffer::fill(). |
|
write to conduit from a source array Reimplemented in Conduit. Referenced by Buffer::drain(). |
|
flush provided content to the conduit Reimplemented in Conduit. Referenced by Buffer::append(), and Buffer::flush(). |
|
Transfer the content of this conduit to another one. Returns true if all content was successfully copied. Reimplemented in Conduit. |
|
Attach a filter to this conduit: see IConduitFilter Reimplemented in Conduit. |
|
Return a preferred size for buffering conduit I/O Reimplemented in Conduit, DeviceConduit, and Socket. Referenced by Buffer::this(). |
|
Returns true is this conduit can be read from Reimplemented in Conduit. |
|
Returns true if this conduit can be written to Reimplemented in Conduit. |
|
Returns true if this conduit is seekable (whether it implements ISeekable) Reimplemented in Conduit. |
|
Returns true if this conduit is text-based Reimplemented in Conduit, and SocketConduit. Referenced by Buffer::this(). |
|
Release external resources Reimplemented in Conduit, DeviceConduit, Socket, and SocketConduit. Referenced by SocketAppender::close(), HttpBridge::cross(), and ClusterThread::run(). |