TIdStreamType is an enumerated type that indicates the TStream descendant class type to be used in procedures, functions, and methods that allow use of file- or memory-based streams when reading or writing stream content. TIdStreamType may contain one of the following values and associated meanings:
- stFileStream - The associated stream is a TFileStream instance.
- stMemoryStream - The associated stream is a TMemoryStream instance.
TIdStreamType is the type used to represent the TIdSMTPServer.RawStreamType property, and allows the TIdSMTPServer to determine the stream class type to create when capturing mail data from a threaded SMTP client connection.