Topic Path: Symbol Reference > Classes > TIdFSPPacket Class > TIdFSPPacket Properties > FilePosition Property
TIdFSPPacket.FilePosition Property

Indicates the current offset into a data stream represented by the Data in the packet.

property FilePosition: Cardinal;

FilePosition is a Cardinal property that indicates the current offset for the Data in the packet. 

In the FSP protocol, small packet sizes are used when sending or receiving data in the FSP protocol exchange. As a result, several packets may be required to fully transfer the content for CC_GET_FILE, CC_GET_DIR, CC_PUT_FILE, and other FSP commands. FilePosition indicates the current offset into the complete data stream represented by the Data in the packet. 

FilePosition is used in the WritePacket and ReadPacket methods when property values are converted to / from their binary representations. 

FilePosition is updated during execution of methods that implement the various commands using the logic specified in the FSP protocol.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.