System.Classes.TCustomMemoryStream

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TStreamSystem.TObjectTCustomMemoryStream

Delphi

TCustomMemoryStream = class(TStream)

C++

class PASCALIMPLEMENTATION TCustomMemoryStream : public TStream

Properties

Type Visibility Source Unit Parent
class public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

TCustomMemoryStream is an abstract base class used as the common ancestor for memory streams.

Use TCustomMemoryStream as a base class when defining a stream object that can transfer data that is stored in memory. Memory streams are useful for providing file-like access to data that is stored in a less accessible medium. Data can be moved to an internal memory buffer when the memory stream is created. After manipulating the data in a memory stream, the data can be written out to its actual storage medium when the memory stream is destroyed.

Do not instantiate an instance of TCustomMemoryStream. It is an abstract class that implements behavior common to all memory streams. To work with an instance of a memory stream, use one of the descendants of TCustomMemoryStream, such as TMemoryStream or TResourceStream.

See Also