vibe.stream.memory

In-memory streams

Members

Classes

MemoryOutputStream
class MemoryOutputStream

OutputStream that collects the written data in memory and allows to query it as a byte array.

MemoryStream
class MemoryStream

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

Functions

createMemoryOutputStream
MemoryOutputStream createMemoryOutputStream(IAllocator alloc)
Undocumented in source. Be warned that the author may not have intended to support it.
createMemoryStream
MemoryStream createMemoryStream(ubyte[] data, bool writable, size_t initial_size)

Creates a new stream with the given data array as its contents.

Mixins

__anonymous
mixin validateOutputStream!MemoryOutputStream
Undocumented in source.
__anonymous
mixin validateRandomAccessStream!MemoryStream
Undocumented in source.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig