/* This function is used for copying received stream to 16 bit in little endian format. 
STREAM_TO_UINT16_f */
UINT16 STREAM_TO_UINT16_f(CHAR *p, UINT16 offset)
/* This function is used for copying received stream to 16 bit in little endian format. 
STREAM_TO_UINT16_f */
UINT16 STREAM_TO_UINT16_f(CHAR *p, UINT16 offset)
{
	return (UINT16)((UINT16)((UINT16)
		(*(p + offset + 1)) << 8) + (UINT16)(*(p + offset)));
}