/* To check if FtwRecord is the first record of FtwHeader. */
BOOLEAN IsFirstRecordOfWrites(IN EFI_FAULT_TOLERANT_WRITE_HEADER *FtwHeader, IN EFI_FAULT_TOLERANT_WRITE_RECORD *FtwRecord)
/* To check if FtwRecord is the first record of FtwHeader. */
BOOLEAN IsFirstRecordOfWrites(IN EFI_FAULT_TOLERANT_WRITE_HEADER *FtwHeader, IN EFI_FAULT_TOLERANT_WRITE_RECORD *FtwRecord)
{
  UINT8  *Head;
  UINT8  *Ptr;
  Head = (UINT8 *)FtwHeader;
  Ptr  = (UINT8 *)FtwRecord;
  Head += sizeof (EFI_FAULT_TOLERANT_WRITE_HEADER);
  return (BOOLEAN)(Head == Ptr);
}