Internet Direct (Indy)
Home
PreviousUpNext
ToBytesF

Copies values from an ordinal data type into an array of bytes.

Parameters 
Description 
Bytes 
Storage for byte values copied from the ordinal data type.
 
AValue 
Ordinal data type for the byte conversion operation. 

ToBytesF is an overloaded procedure used to copy values from the specified ordinal data type into the array of bytes indicated in Bytes. 

ToBytesF assumes that the size of Bytes is fixed (or at least pre-allocated). ToBytesF will raise an EAssertionFailed exception if the length of bytes is too small to store the byte values from thje ordinal data type. 

 

On the .Net platform, ToBytesF calls the ToBytes procedure to perform the copy operation for the ordinal data type specified in AValue. 

 

For all other platforms, where Pointer operations are supported, ToBytesF stores the value in AValue by de-referencing a pointer for the ordinal data type with the address for the TIdBytes storage indicated in Bytes.

ToBytesF 

ToBytes

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.