D Programming Language 2.0

Last update Sat May 19 02:03:01 2012

io.file

struct File;
File is seekable device.

this(string fname, const(char[]) mode = "r");

void attach(HANDLE h);
void detach();

bool pull(ref ubyte[] buf);
Request n number of elements. buf is treated as an output range.

Returns:
  • true : You can request next pull.
  • false : No element exists.

bool push(ref const(ubyte)[] buf);

@property bool seekable();

ulong seek(long offset, SeekPos whence);

struct ArraySource(E);
Wrapping array with source interface.