BufferedOutputStream.writeToStream

Writes the given items this stream's internal buffer, and flushes if we reach the buffer's capacity.

struct BufferedOutputStream(S, uint BufferSize = DEFAULT_BUFFER_SIZE)
writeToStream
(
E[] buffer
)

Parameters

buffer E[]

The elements to write.

Return Value

The number of elements that were written, or -1 in case of error.

Meta