Internet Direct (Indy)
Home
PreviousUpNext
TIdEncoder00E.Encode@TIdStream@integer

Implements the common encoding mechanism used in encoders using the UUE or XXE encoding algorithms.

Parameters 
Description 
ASrcStream 
Stream containing values to be encoded.
 
ABytes 
Number of bytes to encode from the stream. Default is MaxInt. 

string - Encode length and data from the encoding algorithm.

Encode is an overridden string function that implements the common encoding mechanism used in encoders using the UUE or XXE encoding algorithms. 

ASrcStream is the Stream containing values to be encoded. 

ABytes indicates the number of bytes to encode from the stream. The default value is MaxInt, and insicates that all values in the stream will be encoded using the encoding algorithm. 

Encode stores the current position in ASrcStream, and calls the inherited method to force use of the 3-bytes to 4-bytes encoding required for the algorithms. 

The return value for the method is the encoded length, as required by the UUE or XXE encoding algorithm, and the encoded contents read from ASrcStream. 

TIdEncoder00E does not specifiy the tablke-driven encoding alphabet for the encoding algorithm. Use a descendant class, like TIdEncoderUUE or TIdEncoderXXE, that implements the table-driven encoding alphabet for the encoding algorithm. 

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.