TECLMemoryStream is a very easy in use replacement of TMemoryStream with advanced compression/decompression capabilities.
Use TECLMemoryStream to store data in a dynamic memory buffer that is enhanced with file-like access and transparent compression/decompression capabilities. TECLMemoryStream provides the general I/O capabilities of a stream object while introducing methods and properties to manage a dynamic memory buffer.
Memory streams are useful as intermediary objects that can hold information as well as read it from or write it to another storage medium. They provide a useful format for comparing the contents of streams, or for manipulating data that is stored in a less accessible medium.