BufferedIO

A wrapper to perform buffered IO over another IO type

Constructors

this
this(T fd, size_t bufferSize)

Construct an initialized buffered IO object

this
this(T fd, size_t readBufferSize, size_t writeBufferSize)
Undocumented in source.

Destructor

~this
~this()

Struct destructor

Postblit

this(this)
this(this)
Undocumented in source.

Alias This

fd

Members

Functions

close
void close()

Close the buffered IO

flush
void flush(ARGS args)

Flush the write buffers

opAssign
BufferedIO opAssign(T fd)

Attach an underlying FD to the buffered IO instance

open
void open(size_t bufferSize)
void open(size_t readBufferSize, size_t writeBufferSize)

Prepare the buffers.

read
auto read(void[] buffer, ARGS args)

Perform @safe buffered read

readLine
const(char)[] readLine(char terminator)

Read a single line

readLine
const(char)[] readLine(char terminator, bool partialOk, ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()

Forget all pending writes

write
void write(const(void)[] buffer, ARGS args)

Perform @safe buffered write

Manifest constants

MIN_BUFF_SIZE
enum MIN_BUFF_SIZE;
Undocumented in source.

Variables

fd
T fd;
Undocumented in source.

Meta