Handbook
Glossary
<limited-stream> ( stream limit -- stream' )
Vocabulary
io
.
streams
.
limited
Inputs
stream
an input stream
limit
an
integer
Outputs
stream'
an input stream
Word description
Constructs a new
limited-stream
from an existing stream. User code should use
limit-stream
or
limited-input
.
Definition
USING:
accessors
kernel
;
IN:
io.streams.limited
:
<limited-stream>
( stream limit -- stream' )
limited-stream
new
swap
>>limit
swap
>>stream
0
>>count
;