Handbook
Glossary
read-into-buf ( buf stream quot -- buf-slice/f )
Vocabulary
io
.
private
Inputs
buf
an
object
stream
an
object
quot
an
object
Outputs
buf-slice/f
an
object
Definition
USING:
kernel
math
sequences
sequences.private
;
IN:
io.private
:
read-into-buf
( buf stream quot -- buf-slice/f )
[
dup
length
over
]
2dip
call
[
head-to-index
<slice-unsafe>
]
[
zero?
not
]
bi
;
inline