stream-read-partial ( n stream -- seq/f )
Factor handbook » Input and output » Streams » Stream protocol

Prev:stream-read-into ( buf stream -- buf-slice more? )
Next:stream-read-partial-into ( buf stream -- buf-slice more? )


Vocabulary
io

Inputs
na non-negative integer
streaman input stream


Outputs
seq/fa byte-array, a string, or f


Word description
Reads at most n elements from a stream and returns up to that many characters without blocking. If no characters are available, blocks until some are and returns them.

Definition