Console.Conduit

Conduit for specifically handling the console devices. It used to have special implementation for Win32 but it was removed as unmaintained during D2 transition.

struct Console
class Conduit : Device {}

Members

Functions

toString
istring toString()

Return the name of this conduit.

Inherited Members

From Device

error
alias error = Conduit.error

expose superclass definition also

error
void error()

Throw an IOException noting the last error.

toString
istring toString()

Return the name of this device.

bufferSize
size_t bufferSize()

Return a preferred size for buffering conduit I/O.

setNonBlock
void setNonBlock()

Sets the device in the non-blocking mode.

handle
int handle;
Undocumented in source.
reopen
void reopen(Handle handle)

Allow adjustment of standard IO handles.

fileHandle
Handle fileHandle()
detach
void detach()

Release the underlying file.

read
size_t read(void[] dst)

Read a chunk of bytes from the file into the provided array

write
size_t write(const(void)[] src)

Write a chunk of bytes to the file from the provided array.

pread
size_t pread(void[] dst, off_t offset)

Read a chunk of bytes from the file from the given offset, into the provided array

pwrite
size_t pwrite(const(void)[] src, off_t offset)

Write a chunk of bytes to the file starting from the given offset, from the provided array

Meta