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

# TStream.ReadResHeader

Read a resource header from the stream.

## Declaration

`public procedure TStream.ReadResHeader;`

## Description

ReadResourceHeader reads a reasource file header from the stream. It positions the stream just beyond the header.

ReadResourceHeader should not be called directly, it is called by the streaming system when needed.

## Errors

If the resource header is invalid an EInvalidImage exception is raised.

## See also

TStream.ReadComponentRes |  | Reads component data and resource header from a stream
EInvalidImage |  | Exception raised when the resource header needed for streaming of a component is invalid.