BytesStream
Represents a stream of bytes.
Initialize the stream.
init (stream<anydata, Error?> anydataStream)
anydata stream
Retrieve the next value of the stream.
Close the stream.
function next() returns record {| value byte[ ] |} | Error?
Returns the next value of the stream or else an error
function close() returns Error?
Returns an error if failed to close the stream