Indy 9
|
TIdDecoder4to3 = class(TIdDecoder)
TIdDecoder4to3 provides methods to decode string values to as stream destination, and method to handle the low-level conversion performed when processing string input values.
property FillChar: Char;
class procedure ConstructDecodeTable(const ACodingTable: string; var ADecodeArray: TIdDecodeTable);
ADecodeArray is used by descendant classes, like TIdDecoderMIME and TIdDecoderUUE, to initialize their DecodeTable properties based on the alphabet for each specific coder.
procedure DecodeToStream(AIn: string; ADest: TStream); override;
DecodeToStream can raise an EIdException with the constant message RSUnevenSizeInDecodeStream when the length of the encoded data in AIn is not a multiple of 4.
DecodeToStream reads 4 bytes of data from AIn and calls DecodeUnit until all contents in the encoded data have been handled. An individual byte in the 3-byte un-encoded value and it's preceding byte will be omitted when the byte value is equal to FillChar.
procedure DecodeUnit(AIn: Cardinal; var VOut1: Byte; var VOut2: Byte; var VOut3: Byte);