function MemStreamToString(M: TMemoryStream): AnsiString;

 

This function dumps the entire content of a TMemoryStream into an ANSI-encoded string object.

 

Parameters

M

The memory stream

 

Return value

AnsiString

This function returns an AnsiString containing the contents of the memory stream that was passed as an argument