API:System.Classes.TResourceStream
Delphi
TResourceStream = class(TCustomMemoryStream)
C++
class PASCALIMPLEMENTATION TResourceStream : public TCustomMemoryStream
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.
System.Classes.TResourceStream inherits from System.Classes.TCustomMemoryStream. All content below this line refers to System.Classes.TCustomMemoryStream.
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.