Copies binary values from an array of bytes into an untyped buffer location.
procedure BytesToRaw( const AValue: TIdBytes; var VBuffer; const ASize: Integer );
Parameters |
Description |
AValue |
Values to copy to the buffer. |
VBuffer |
Buffer used to store copied values. |
ASize |
Number of bytes to copy into the buffer. |
BytesToRaw is a procedure used to copy binary values from AValue into the buffer specified in VBuffer. ASize indicates the number of byte values to copy from AValue. BytesToRaw will raise an EAssertionFailed exception if the number of bytes in ASize is larger than the number of bytes available in AValue.
BytesToRaw calls the Move procedure in the Borland RTL to copy the specified number of bytes from AValue into the buffer indicated.
Please note that BytesToRaw is not defined for the .Net platform. on the .Net platform, use one of the routines that handles conversion of TIdByte values to an ordinal data type like:
Exceptions |
Description |
EAssertionFailed |
Raised when the requested number of bytes exceeds the number of bytes available. |
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. |