vibe.d beta banner
get vibe.d
0.7.31

Class MemoryOutputStream

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

class MemoryOutputStream
  : OutputStream;

Constructors

Constructors

NameDescription
this

Properties

Properties

NameTypeDescription
data[get]ubyte[]An array with all data written to the stream so far.

Methods

Methods

NameDescription
finalizeFlushes and finalizes the stream.
flushFlushes the stream and makes sure that all data is being written to the output device.
reserveReserves space for data - useful for optimization.
resetResets the stream to its initial state containing no data.
writeWrites an array of bytes to the stream.
writePipes an InputStream directly into this OutputStream.
writeWrites an array of chars to the stream.
writeDefault
Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

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