PipeConduit

Conduit for pipes.

Each PipeConduit can only read or write, depending on the way it has been created.

Destructor

~this
~this()

Destructor.

Members

Functions

bufferSize
size_t bufferSize()

Returns the buffer size for the PipeConduit.

toString
istring toString()

Returns the name of the device.

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