Handbook
Glossary
stream-contents-by-length ( stream len -- seq )
Vocabulary
io
.
private
Inputs
stream
an
object
len
an
object
Outputs
seq
an
object
Definition
USING:
io
kernel
sequences.private
;
IN:
io.private
:
stream-contents-by-length
( stream len -- seq )
dup
rot
[
new-sequence-for-stream
]
[
[
stream-read-unsafe
]
keepd
resize
]
bi
;
inline