encodeText

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.

encodeText
(
Chain
)
(
Chain c
)

Parameters

enc

The encoding type to use.

c Chain

The source iopipe. Must be an iopipe where the window type's element type is text based.

Return Value

Type: auto

A ubyte iopipe that represents the encoded version of the input iopipe based on the provided encoding.

Meta