/* NOTE: Only use this internally. Assumes correctly-sized buffers. */
STATIC VOID PopulateCommonData(OUT VARIABLE_POLICY_ENTRY *EntPtr, IN CONST EFI_GUID *Namespace, IN UINT32 MinSize, IN UINT32 MaxSize, IN UINT32 AttributesMustHave, IN UINT32 AttributesCantHave, IN UINT8 LockPolicyType)
/* NOTE: Only use this internally. Assumes correctly-sized buffers. */
STATIC VOID PopulateCommonData(OUT VARIABLE_POLICY_ENTRY *EntPtr, IN CONST EFI_GUID *Namespace, IN UINT32 MinSize, IN UINT32 MaxSize, IN UINT32 AttributesMustHave, IN UINT32 AttributesCantHave, IN UINT8 LockPolicyType)
{
  EntPtr->Version = VARIABLE_POLICY_ENTRY_REVISION;
  CopyGuid (&EntPtr->Namespace, Namespace);
  EntPtr->MinSize            = MinSize;
  EntPtr->MaxSize            = MaxSize;
  EntPtr->AttributesMustHave = AttributesMustHave;
  EntPtr->AttributesCantHave = AttributesCantHave;
  EntPtr->LockPolicyType     = LockPolicyType;
  if (EntPtr->MaxSize == 0) {
    EntPtr->MaxSize = VARIABLE_POLICY_NO_MAX_SIZE;
  }
  return;
}