Internet Direct (Indy)
Home
PreviousUpNext
RawToBytes Function

Converts values to their representation as a TIdBytes data type.

Pascal
function RawToBytes(
    const AValue; 
    const ASize: Integer
): TIdBytes;
Parameters 
Description 
AValue 
Data values tobe converted to an arrayo of bytes.
 
ASize 
Number of bytes in the data to be converted. 

TIdBytes - The array of bytes data type used in the Indy library.

RawToBytes is a TIdBytes function used to convert the value specified in AValue to its representation as a TIdBytes data type. 

RawToBytes is decfined for the Windows and Linux platforms. 

RawToBytes converts the values in AValue having the length specified in ASize to an array bytes as represents by TIdBytes. RawToBytes sets the length of the return value to ASize, and calls the Move procedure in the runtime library to copy the values in AValue.

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.