Handbook
Glossary
maybe-read-unsafe ( n buf limited-stream quot: ( n buf stream -- count ) -- count )
Vocabulary
io
.
streams
.
limited
.
private
Inputs
n
an
object
buf
an
object
limited-stream
an
object
quot
a
quotation
with stack effect
( n buf stream -- count )
Outputs
count
an
object
Definition
USING:
accessors
kernel
math
;
IN:
io.streams.limited.private
::
maybe-read-unsafe
( n buf limited-stream quot: ( n buf stream -- count ) -- count )
n limited-stream
adjust-limited-read
:>
( n' lstream' ) n' 0
<=
[
0
]
[
n' buf lstream'
stream>>
quot
call
]
if
;
inline