Handbook
Glossary
<byte-writer> ( encoding -- stream )
Factor handbook
»
Input and output
»
Byte-array streams
Prev:
<byte-reader> ( byte-array encoding -- stream )
Next:
with-byte-reader ( byte-array encoding quot -- )
Vocabulary
io
.
streams
.
byte-array
Inputs
encoding
an encoding descriptor
Outputs
stream
a new byte writer
Word description
Creates an output stream writing data to a byte array using an encoding.
Definition
USING:
byte-vectors
io.encodings
kernel
;
IN:
io.streams.byte-array
:
<byte-writer>
( encoding -- stream )
512
<byte-vector>
swap
<encoder>
;
inline