vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function EventDriverFiles.write

Writes data to a file

abstract void write (
  FileFD file,
  ulong offset,
  const(ubyte)[] buffer,
  IOMode mode,
  nothrow @safe void delegate(FileFD, IOStatus, ulong) on_write_finish
) nothrow @safe;

Note that only a single read operation is allowed at once. The caller needs to make sure that either on_read_finish got called, or cancelRead was called before issuing the next call to read.

Authors
Copyright
License