Topic Path: Symbol Reference > Functions > CopyTIdBytes Function
ContentsIndexHome
PreviousUpNext
CopyTIdBytes Function

Copies bytes values between TIdBytes instances.

File
procedure CopyTIdBytes(
    const ASource: TIdBytes; 
    const ASourceIndex: Integer; 
    var VDest: TIdBytes; 
    const ADestIndex: Integer; 
    const ALength: Integer
);
Parameters 
Description 
ASource 
Values to be copied.
 
ASourceIndex 
Position of the initial byte value to include in the copy.
 
ADestIndex 
Position of the initial byte used for storing copied byte values.
 
ALength 
Number of bytes to be copied from the source to the destination. 
ADest 
Storage for the copied values.
 

CopyTIdBytes is a procedure used to copy byte values between the TIdBytes instances specified in ASource and ADest. 

ASourceIndex is the zero-based position of the initial byte value in ASource to include in the copy. 

ADestIndex - Position of the initial byte in the destination used for storing copied byte values. 

ALength indicates the number of bytes to be copied from the source to the destination. 

CopyTIdBytes is a utility procedure that isolates the platform-specific procedures required to perform the copy process. 

 

On the .Net platform, CopyTIdBytes calls the System.Array.Copy framework method to perform the copy. 

 

For all other platforms, CopyTIdBytes calls the Move procedure from the runtime library to perform the copy. 

Use CopyTIdByteArray to perform a copy operation using Array of Byte arguments.

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