Handbook
Glossary
throws-on-eof-stream
Vocabulary
io
.
streams
.
throwing
Definition
IN:
io.streams.throwing
TUPLE:
throws-on-eof-stream
stream
;
Methods
USING:
accessors
destructors
io.streams.throwing
;
M:
throws-on-eof-stream
dispose
stream>>
dispose
;
USING:
accessors
io
io.streams.throwing
;
M:
throws-on-eof-stream
stream-element-type
stream>>
stream-element-type
;
USING:
accessors
io
io.streams.throwing
;
M:
throws-on-eof-stream
stream-length
stream>>
stream-length
;
USING:
accessors
io
io.streams.throwing
math
;
M::
throws-on-eof-stream
stream-read-partial-unsafe
( n buf stream -- count )
n buf stream
stream>>
stream-read-partial-unsafe
[
n stream
\
stream-read-partial-unsafe
stream-exhausted
]
when-zero
;
USING:
accessors
io
io.streams.throwing
kernel
;
M::
throws-on-eof-stream
stream-read-unsafe
( n buf stream -- count )
n buf stream
stream>>
stream-read-unsafe
dup
n
=
[
n stream
\
stream-read-unsafe
stream-exhausted
]
unless
;
USING:
accessors
io
io.streams.throwing
kernel
sequences
;
M:
throws-on-eof-stream
stream-read-until
[
stream>>
stream-read-until
]
[
[
[
length
]
]
dip
[
\
read-until
stream-exhausted
]
curry
compose
unless*
]
bi
;
USING:
accessors
io
io.streams.throwing
kernel
;
M::
throws-on-eof-stream
stream-read1
( stream -- elt )
stream
stream>>
stream-read1
[
1 stream
\
read1
stream-exhausted
]
unless*
;
USING:
accessors
io
io.streams.throwing
;
M:
throws-on-eof-stream
stream-seek
stream>>
stream-seek
;
USING:
accessors
io
io.streams.throwing
;
M:
throws-on-eof-stream
stream-seekable?
stream>>
stream-seekable?
;
USING:
accessors
io
io.streams.throwing
;
M:
throws-on-eof-stream
stream-tell
stream>>
stream-tell
;