FixedBufferBase

Undocumented in source.

Constructors

this
this(T args)

Forwards arguments to super class.

Destructor

~this
~this()

Upon destruction, any pending writes are flushed to the underlying stream.

Postblit

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

Alias This

stream

Members

Aliases

put
alias put = write
Undocumented in source.

Functions

flush
void flush()

Writes any pending data to the underlying stream.

read
size_t read(ubyte[] buf)

Reads data from the stream into the given buffer. The number of bytes read is returned.

seekTo
long seekTo(long offset, From from)

Seeks to the given position relative to the given starting point.

write
size_t write(ubyte[] buf)

Writes the given data to the buffered stream. When the internal buffer is completely filled, it is flushed to the underlying stream.

Properties

bufferSize
size_t bufferSize [@property setter]

Sets the size of the buffer. The default is 8192 bytes. This will only succeed if no data has been buffered (e.g., just after construction).

bufferSize
size_t bufferSize [@property getter]

Gets the current buffer size. The default is 8192 bytes.

Variables

stream
Stream stream;
Undocumented in source.

Meta