Docs » Autodocs » aml.library » Encode
Encode -- Encode a stream/buffer
length = Encode(encoder, type) D0 A0 A1 LONG Encode(APTR encoder, ULONG type);
Encodes data from a input stream or buffer to an output stream or buffer. The corresponding stream/buffer must be set up when the encoder is created via CreateDecoderA().
encoder - Pointer to a encoder object. type - One of the following values, that specifies how to encode the input stream/buffer: ENCODE_COPY - Do nothing to the stream. ENCODE_QP - Encode the stream as quoted-printable data. See the MIME RFCs for details. ENCODE_B64 - Encode the stream as base64. ENCODE_UU - Encode the stream as uuencoded. ENCODE_ROT - Encode the stream as ROT-13 style.
length - The resulting length of the output stream or buffer.
CreateDecoderA()
|