Internet Direct (Indy) Version 9.0.1 Beta
TIdDecoderUUEBase.DecodeToStream
Converts a UUEncoded body line to it's original binary format.

procedure DecodeToStream(AIn: string; ADest: TStream); override;
Parameters
AIn: string
Values to decoded.

ADest: TStream
Destination for decoded values.

Description
DecodeToStream is an overridden Procedure in TIdDecoderUUEBase that re-implements the inherited method to provide support for reading the UUEncode body line format, as well as the specifics of the UUDecode algorithm.

AIn contains the UUEncoded input values that will be restored to their original binary format.

ADest is a TStream descendant that will receive the results of the decoding algorithm.

When the length of AIn is 0, DecodeToStream does not attempt to perform the decoding algorithm. DecodeToStream reads the first byte in AIn to determine the length of the UUencoded data using the ordinal position of the value in the UUEncode alphabet.

The remainder of AIn is the UUEncoded data that will be restored to its original binary representation. When the length of the remaining portion of AIn is not a multiple of 3, AIn is padded with FillChar to the desired length.

Finally, DecodeToStream calls the inherited DecodeToStream method to perform conversion of the UUEncoded data to its binary representation.