Indy 9 | Content | Index | Reference

TWorkInfo
See Also, Unit: IdComponent
Represents work information for Indy read and write operations.

    TWorkInfo = record
      Current: Integer;
      Max: Integer;
      Level: Integer;
      end;

Unit
IdComponent
Members
Current: Integer;
Current is an Integer value that identifies the number of bytes available to the current read or write operation.
Max: Integer;
Max is an Integer value that indicates the maximum number of bytes that are available to the read or write operation represented by the record structure. Max normally contains the expected number of bytes for the operation as initialized in the TIdComponent.BeginWork method.
Level: Integer;
Level is an Integer value that identifies the number of operations of that type that are pending. Level can range from 0 to the number of nested calls to BeginWork for the operation type.
Description
TWorkInfo is a Record structure used to represent information about Indy read and write operations. TIdComponent allocates two TWorkInfo records; one represents read operations, and one represents write operations.

The TWorkInfo structures are maintain in the BeginWork and EndWork method of TIdComponent.

Current is an Integer value that identifies the number of bytes available to the current read or write operation.

Max is an Integer value that indicates the maximum number of bytes that are available to the current operation.

Current should never exceed the value of Max.

Level is an Integer value that identifies the number of operations of the given type that are pending. Level can range from 0 to the number of nested calls to BeginWork for the operation type.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.