MemoryStream

Provides a random access stream interface for accessing an array of bytes.

Constructors

this
deprecated this(ubyte[] data, bool writable, size_t initial_size)
Undocumented in source.
this
this(ubyte[] data, bool writable, size_t initial_size, bool dummy)

private

Members

Aliases

read
alias read = RandomAccessStream.read
Undocumented in source.
write
alias write = RandomAccessStream.write
Undocumented in source.

Functions

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.
seek
void seek(ulong offset)
Undocumented in source. Be warned that the author may not have intended to support it.
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 )
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

capacity
size_t capacity [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
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.
leastSize
ulong leastSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
peekWindow
size_t peekWindow [@property setter]

Controls the maximum size of the array returned by peek().

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.
writable
bool writable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta