InputStream stream | An input stream. |
capacity | Desired buffer capacity. |
InputStream stream | An input stream. |
ulong capacity | Desired buffer capacity. |
InputStream stream | An input stream. |
size_t size | Number of bytes to access. |
bool eat | Whether to consume the content or not. |
// create a buffer with some content auto buffer = new Buffer ("hello world"); // consume everything unread auto slice = buffer.slice (buffer.readable);
ulong delegate(const(void)[]) dg | Callback to provide buffer access to. |
ulong delegate(void[]) dg | The callback to provide buffer access to. |
void[] dst | Destination of the content. |
void[] dst | Where data should be placed. |
bool exact | Whether to throw an exception when dst is not filled (an Eof occurs first). Defaults to false. |
ptrdiff_t size | The number of bytes to move. |
ulong delegate(const(void)[]) scan | The delegate to invoke with the current content. |
OutputStream stream | An input stream. |
capacity | Desired buffer capacity. |
OutputStream stream | An input stream. |
ulong capacity | Desired buffer capacity. |
OutputStream stream | An output stream. |
const(void)[] src | The content to write. |
const(void)[] src | The content to append.
Returns a chaining reference if all content was written. Throws an IOException indicating Eof or Eob if not. |
const(void)* src | The content to append. |
size_t length | The number of bytes in src.
Returns a chaining reference if all content was written. Throws an IOException indicating Eof or Eob if not. |
ulong delegate(void[]) dg | The callback to provide buffer access to. |