Handbook
Glossary
stream-element-type ( stream -- type )
Factor handbook
»
Input and output
»
Streams
»
Stream protocol
»
Binary and text streams
Next:
+byte+
Vocabulary
io
Inputs
stream
a stream
Outputs
type
+byte+
or
+character+
Generic word contract
Outputs one of
+byte+
or
+character+
.
Definition
IN:
io
GENERIC:
stream-element-type
( stream -- type )
Methods
USING:
accessors
io
tools.image.analyzer.utils
;
M:
backwards-reader
stream-element-type
stream>>
stream-element-type
;
USING:
io
io.streams.byte-array
kernel
;
M:
byte-reader
stream-element-type
drop
+byte+
;
inline
USING:
byte-vectors
io
kernel
;
M:
byte-vector
stream-element-type
drop
+byte+
;
inline
USING:
io
io.encodings
kernel
;
M:
decoder
stream-element-type
drop
+character+
;
inline
USING:
io
io.streams.duplex
kernel
;
M:
duplex-stream
stream-element-type
>duplex-stream<
[
stream-element-type
]
bi@
2dup
eq?
[
drop
]
[
"Cannot determine element type"
throw
]
if
;
USING:
io
io.encodings
kernel
;
M:
encoder
stream-element-type
drop
+character+
;
inline
USING:
io
io.files
kernel
;
M:
file-reader
stream-element-type
drop
+byte+
;
inline
USING:
io
io.files
kernel
;
M:
file-writer
stream-element-type
drop
+byte+
;
inline
USING:
accessors
io
io.styles
;
M:
filter-writer
stream-element-type
stream>>
stream-element-type
;
USING:
io
kernel
ui.tools.listener
;
M:
interactor
stream-element-type
drop
+character+
;
USING:
accessors
io
io.streams.limited
;
M:
limited-stream
stream-element-type
stream>>
stream-element-type
;
USING:
io
io.streams.memory
kernel
;
M:
memory-stream
stream-element-type
drop
+byte+
;
inline
USING:
io
io.streams.null
kernel
;
M:
null-reader
stream-element-type
drop
+byte+
;
USING:
io
io.streams.null
kernel
;
M:
null-writer
stream-element-type
drop
+byte+
;
USING:
io
kernel
ui.gadgets.panes
;
M:
pane-stream
stream-element-type
drop
+character+
;
USING:
accessors
io
io.streams.peek
;
M:
peek-stream
stream-element-type
stream>>
stream-element-type
;
USING:
io
io.streams.random
kernel
;
M:
random-stream
stream-element-type
drop
+byte+
;
USING:
io
kernel
sbufs
;
M:
sbuf
stream-element-type
drop
+character+
;
inline
USING:
io
io.streams.string
kernel
;
M:
string-reader
stream-element-type
drop
+character+
;
inline
USING:
accessors
io
io.streams.tee
;
M:
tee-stream
stream-element-type
in>>
stream-element-type
;
USING:
accessors
io
io.streams.throwing
;
M:
throws-on-eof-stream
stream-element-type
stream>>
stream-element-type
;
USING:
io
io.streams.zeros
kernel
;
M:
zero-stream
stream-element-type
drop
+byte+
;