Encode a given text iopipe into the desired encoding type. The resulting iopipe's element type is ubyte, with the bytes ready to be written to a storage device.
The encoding type to use.
The source iopipe. Must be an iopipe where the window type's element type is text based.
A ubyte iopipe that represents the encoded version of the input iopipe based on the provided encoding.
See Implementation
Encode a given text iopipe into the desired encoding type. The resulting iopipe's element type is ubyte, with the bytes ready to be written to a storage device.