/* Return the buffer size of the EFI_BOOT_MANAGER_KEY_OPTION data. */
UINTN BmSizeOfKeyOption(IN CONST EFI_BOOT_MANAGER_KEY_OPTION *KeyOption)
/* Return the buffer size of the EFI_BOOT_MANAGER_KEY_OPTION data. */
UINTN BmSizeOfKeyOption(IN CONST EFI_BOOT_MANAGER_KEY_OPTION *KeyOption)
{
  return OFFSET_OF (EFI_BOOT_MANAGER_KEY_OPTION, Keys)
         + KeyOption->KeyData.Options.InputKeyCount * sizeof (EFI_INPUT_KEY);
}