ArrayInputStream.readFromStream

Reads items from this input stream's array into the given buffer, where successive read calls will read sequentially from the array, so that, for example, with an array [1, 2, 3, 4], reading with a buffer size of 2 will first read [1, 2], and then [3, 4].

struct ArrayInputStream(E)
readFromStream
(
E[] buffer
)

Parameters

buffer E[]

The buffer read array elements into.

Return Value

The number of elements that were read.

Meta