System.Classes.TMemoryStream
Delphi
TMemoryStream = class(TCustomMemoryStream)
C++
class PASCALIMPLEMENTATION TMemoryStream : public TCustomMemoryStream
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
TMemoryStream is a stream that stores its data in dynamic memory.
Use TMemoryStream to store data in a dynamic memory buffer that is enhanced with file-like access capabilities. TMemoryStream 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.
See Also