Class MemoryOutputStream
OutputStream that collects the written data in memory and allows to query it
as a byte array.
Properties
Name | Type | Description |
data [get]
|
ubyte[] | An array with all data written to the stream so far.
|
Methods
Name | Description |
finalize
()
|
|
flush
()
|
|
reserve
(nbytes)
|
Reserves space for data - useful for optimization.
|
reset
(mode)
|
Resets the stream to its initial state containing no data.
|
write
(bytes_, mode)
|
Writes an array of bytes to the stream.
|
finalize
()
|
Flushes and finalizes the stream.
|
flush
()
|
Flushes the stream and makes sure that all data is being written to the output device.
|
write
(bytes)
|
Writes an array of bytes to the stream.
|