[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TResourceStream

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Stream that reads its data from a resource object.

## Declaration

`type TResourceStream = class(TCustomMemoryStream)`
`public`
`constructor Create();` |  | Creates a new instance of a resource stream.
`constructor CreateFromID();` |  | Creates a new instance of a resource stream with resource
`destructor Destroy; override;` |  | Destroys the instance of the resource stream.
`function Write(); override;` |  | Write implements the abstract TStream.Write method.
`end;`

## Inheritance

`TResourceStream` |  | Stream that reads its data from a resource object.
`TCustomMemoryStream` |  | Abstract stream that stores its data in memory.
`TStream` |  | Base class for streams.
`TObject`