Handbook
Glossary
<byte-reader> ( byte-array encoding -- stream )
Factor handbook
»
Input and output
»
Byte-array streams
Next:
<byte-writer> ( encoding -- stream )
Vocabulary
io
.
streams
.
byte-array
Inputs
byte-array
a
byte-array
encoding
an encoding descriptor
Outputs
stream
a new byte reader
Word description
Creates an input stream reading from a byte array using an encoding.
Definition
USING:
io.encodings
kernel
sequences
;
IN:
io.streams.byte-array
:
<byte-reader>
( byte-array encoding -- stream )
[
B{
}
like
0
byte-reader
boa
]
dip
<decoder>
;