/* This initializes the FV lib with a pointer to the FV and length. It does not verify the FV in any way. */
EFI_STATUS InitializeFvLib(IN VOID *Fv, IN UINT32 FvLength)
/* This initializes the FV lib with a pointer to the FV and length. It does not verify the FV in any way. */
EFI_STATUS InitializeFvLib(IN VOID *Fv, IN UINT32 FvLength)
{
  if (Fv == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  mFvHeader = (EFI_FIRMWARE_VOLUME_HEADER *) Fv;
  mFvLength = FvLength;
  return EFI_SUCCESS;
}