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

# TLRSObjectReader

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

Reader for resource streams.

## Declaration

Source position: lresources.pp line 133

`type TLRSObjectReader = class(TAbstractObjectReader)`
`protected`
`function ReadIntegerContent;` |  | Reads an 4 byte integer value.
`public`
`constructor Create(); virtual;` |  |
`destructor Destroy; override;`
`function NextValue; override;` |  | Peek the next byte (value type indicator).
`function ReadValue; override;` |  | Reads the next ValueType. Pops or pushes a stack item if required (for list or collection).
`procedure BeginRootComponent; override;` |  | Reads the filer signature from the input.
`procedure BeginComponent(); override;` |  |
`function BeginProperty; override;` |  |
`function GetStackPath;` |  | Returns the qualified current item name.
`procedure Read(); override;` |  | Read a number of bytes from the input stream.
`procedure ReadBinary(); override;` |  | Reads binary data, stored with a Length prefix.
`function ReadFloat; override;` |  | Reads an Extended value (10 Bytes).
`function ReadSingle; override;` |  | Reads an Single value (4 bytes).
`function ReadCurrency; override;` |  | Reads an Currency value (8 bytes).
`function ReadDate; override;` |  | Reads an Date value (8 bytes).
`function ReadIdent(); override;` |  | Reads an identifier, maybe a name or a standard key (which is not stored).
`function ReadInt8; override;` |  |
`function ReadInt16; override;` |  |
`function ReadInt32; override;` |  |
`function ReadInt64; override;` |  |
`function ReadSet(); override;` |  | Reads enum member names, until an empty string is read.
`procedure ReadSignature; override;`
`function ReadStr; override;` |  | Reads an ShortString.
`function ReadString(); override;` |  |
`function ReadWideString; override;` |  |
`function ReadUnicodeString; override;` |  |
`procedure SkipComponent(); override;` |  | Skips an entire Component.
`procedure SkipValue; override;` |  | Skips the next value.
`property Stream: TStream; [r]` |  | The input stream.
`property Reader: TReader; [rw]` |  | The root component reader.
`end;`

## Inheritance

`TLRSObjectReader` |  | Reader for resource streams.
`TAbstractObjectReader`
?
`TObject`

## Description

Uses an stack for reading nested objects.