BufferedStream

Random access stream that provides buffering on top of a wrapped stream.

The source stream is logically split up into chunks of equal size, where a defined maximum number of those chunks can be cached in memory. Cached chunks are managed using a LRU strategy.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
peek
const(ubyte)[] peek()
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte[] dst, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
read
void read(ubyte[] dst)
Undocumented in source. Be warned that the author may not have intended to support it.
seek
void seek(ulong offset)
Undocumented in source. Be warned that the author may not have intended to support it.
sync
void sync()

Flushes and releases all buffers and updates the buffer size.

tell
ulong tell()
Undocumented in source. Be warned that the author may not have intended to support it.
truncate
void truncate(ulong size)
Undocumented in source. Be warned that the author may not have intended to support it.
write
size_t write(ubyte[] bytes, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(ubyte[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(char[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

dataAvailableForRead
bool dataAvailableForRead [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isOpen
bool isOpen [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
leastSize
ulong leastSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
readable
bool readable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
ulong size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
underlying
inout(S) underlying [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
writable
bool writable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta