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

# TCustomLazComponentQueue

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

A queue to stream components, used for multi-threading or network.

## Declaration

Source position: lresources.pp line 413

`type TCustomLazComponentQueue = class(TComponent)`
`protected`
`FQueue: TDynamicDataQueue;` |  | Member with the dynamic storage for the queue..
`function ReadComponentSize(); virtual;` |  | Reads the component size and the length for the size value.
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`procedure Clear;` |  | Clears all values in the internal queue storage.
`function Write();` |  | Pushes values in Buffer onto the internal storage queue.
`function CopyFrom();` |  | Copies the specified number of bytes from the stream and pushes the values onto the queue.
`function HasComponent; virtual;` |  | Determines whether the queue contains the entire contents of the component at the top of the queue.
`function ReadComponent(); virtual;` |  | Reads a component from the queue and sets it owner.
`function ConvertComponentAsString();` |  | Converts a component to binary format with a leading size information (using WriteLRSInt64MB).
`property OnFindComponentClass: TFindComponentClassEvent; [rw]` |  | Event handler signalled to get the class type for the specified class name in a TReader instance.
`end;`

## Inheritance

`TCustomLazComponentQueue` |  | A queue to stream components, used for multi-threading or network.
`TComponent`
?
`TObject`

## Description

ConvertComponentAsString converts a component to binary format with leading size information (using WriteLRSInt64MB).

When streaming components over network, they will arrive in chunks. TCustomLazComponentQueue tells you, if a whole component has arrived.