/* Copy a UINT32 from a byte stream, then converts it from Network byte order to host byte order. Use this function to avoid alignment error. */
UINT32 EFIAPI NetGetUint32(IN UINT8 *Buf)
/* Copy a UINT32 from a byte stream, then converts it from Network byte order to host byte order. Use this function to avoid alignment error. */
UINT32 EFIAPI NetGetUint32(IN UINT8 *Buf)
{
  UINT32  Value;
  ASSERT (Buf != NULL);
  CopyMem (&Value, Buf, sizeof (UINT32));
  return NTOHL (Value);
}