Internet Direct (Indy)
Home
PreviousUpNext
TIdDecoderMIMELineByLine.Clear Method

Ensures leftover characters from prior decoding operations are removed.

Pascal
procedure Clear;

Clear is a procedure used to ensure that characters left over from prior calls to Decode are removed before starting a new decoding operation. 

TIdDecoderMIMELineByLine maintains an internal buffer for decoding operations that use Base64-encoded values that are not a multiple of 4-bytes. In other words, the FillChar may not have been appended to the end of the encoded values. 

Use Clear to ensure that these remaining values are discarded proper to calling Decode for a new set of Base64-encoded values.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.