Internet Direct (Indy)
Home
PreviousUpNext
WordToTwoBytes Function

Converts a Word value and stores the two byte values in a ByteArray.

Pascal
procedure WordToTwoBytes(
    AWord: Word; 
    ByteArray: TIdBytes; 
    Index: integer
);
Parameters 
Description 
AWord 
Ordinal data type to convert and store in an array of bytes.
 
ByteArray 
array if bytes to store the converted value.
 
Index 
Offset into the byte array where the converted value will be stored. 

WordToTwoBytes is a procedure used to convert a Word value and store the resulting two byte values in the array of bytes specified in ByteArray. 

Index specifies the zero-based offset into the array of bytes in ByteArray where the converted data tyoe will be stored.

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.