FUNCTION Encode : BOOL
Function encodes "Source" (ARRAY OF DWORD) into "Destination" (ARRAY OF BYTE), meaning 1 DWORD is split up into 4 BYTEs. Assumes "uiNumberOfBytes" is a multiple of 4, whereas if it is not "FALSE" is returned.
InOut:
|
Scope
|
Name
|
Type
|
Comment
|
Return
|
Encode
|
BOOL
|
function returns "TRUE" if encoding succeeded
|
Input
|
pSource
|
POINTER TO ARRAY [0..0] OF DWORD
|
address of source memory
|
pDestination
|
POINTER TO ARRAY [0..0] OF BYTE
|
address of destination memory
|
uiNumberOfBytes
|
UINT
|
number of bytes to encode
|
|