Handbook
Glossary
re-encode ( stream encoding -- newstream )
Factor handbook
»
Input and output
»
I/O encodings
Prev:
decode-input ( encoding -- )
Next:
re-decode ( stream encoding -- newstream )
Vocabulary
io.encodings
Inputs
stream
a stream
encoding
an encoding descriptor
Outputs
newstream
a new stream
Word description
Creates a new encoding stream with the supplied encoding descriptor from an existing stream by calling the
<encoder>
word.
See also
re-decode
Definition
IN:
io.encodings
GENERIC#:
re-encode
1
( stream encoding -- newstream )
Methods
USING:
accessors
io.encodings
kernel
;
M:
encoder
re-encode
[
stream>>
]
dip
re-encode
;
USING:
io.encodings
kernel
;
M:
object
re-encode
<encoder>
;