<encoder-duplex> ( stream-in stream-out encoding -- duplex )


Vocabulary
io.streams.duplex

Inputs
stream-inan input stream
stream-outan output stream
encodingan encoding descriptor


Outputs
duplexan encoded duplex stream


Word description
Wraps the given streams in an encoder or decoder stream, and puts them together in a duplex stream for input and output. If either input stream is already encoded, that encoding is stripped off before it is reencoded. The encoding descriptor must conform to the Encoding protocol.

Notes
Calling this word directly is not necessary in most cases. Higher-level words call it automatically.

Definition