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