Docs » Autodocs » aml.library » Decode
Decode -- Decode a stream/buffer
length = Decode(decoder, type) D0 A0 A1 LONG Decode(APTR decoder, ULONG type);
Decodes data from a input stream or buffer to an output stream or buffer. The corresponding stream/buffer must be set up when the decoder is created via CreateDecoderA().
decoder - Pointer to a decoder object. type - One of the following values, that specifies how to decode the input stream/buffer: DECODE_COPY - Do nothing to the stream. DECODE_QP - Decode the stream as quoted-printable data. See the MIME RFCs for details. DECODE_B64 - Decode the stream as base64. DECODE_UU - Decode the stream as uuencoded. DECODE_ROT - Decode the stream as ROT-13 style.
length - The resulting length of the output stream or buffer.
CreateDecoderA()
|