read-into!

Reads a group of elements from a stream into a collection.

Reads in n elements from the stream starting from the the stream’s current position and places those elements into sequencesequence must be mutable to allow it to expand should the streamed-in elements be larger than its original size.  Handles end-of-stream conditions just as read-element does.

Exported from

Modifiers

open

Arguments

streamAn instance of <stream>.
nAn instance of <integer>.  Number of elements to read.
sequenceAn instance of <mutable-sequence>.  This sequence must allow for changes in its size.
start:An instance of <integer>.  What index to start writing into the sequence.  The default is 0.
on-end-of-stream:An instance of <object>.  Value returned if reading past the stream.  The default is $not-supplied.

Values

count-or-eofAn instance of <integer> or the value on-end-of-stream:.  The number of elements transferred.
Reads the next element from the stream and advances the stream’s position.
The streams-protocol module.
The streams module.
The superclass of all stream classes.
The class of integers.
The class of sequences that may be modified.
The class of all Dylan objects.
A constant.