/** Wrapper function for set PCD value for non-Pointer type dynamic-ex PCD. @param ExTokenNumber Token number for dynamic-ex PCD. @param Guid Token space guid for dynamic-ex PCD. @param Data Value want to be set. @param SetSize The size of value. @return status of ExSetWorker(). **/ EFI_STATUS ExSetValueWorker ( IN UINTN ExTokenNumber, IN CONST EFI_GUID *Guid, IN VOID *Data, IN UINTN Size ) { return ExSetWorker (ExTokenNumber, Guid, Data, &Size, FALSE); }
/** Sets a value of a specified size for a given PCD token. When the PCD service sets a value, it will check to ensure that the size of the value being set is compatible with the Token's existing definition. If it is not, an error will be returned. @param[in] Guid The 128-bit unique value that designates the namespace from which to extract the value. @param[in] ExTokenNumber The PCD token number. @param[in, out] SizeOfBuffer A pointer to the length of the value being set for the PCD token. On input, if the SizeOfValue is greater than the maximum size supported for this TokenNumber then the output value of SizeOfValue will reflect the maximum size supported for this TokenNumber. @param[in] Buffer The buffer to set for the PCD token. @retval EFI_SUCCESS Procedure returned successfully. @retval EFI_INVALID_PARAMETER The PCD service determined that the size of the data being set was incompatible with a call to this function. Use GetSize() to retrieve the size of the target data. @retval EFI_NOT_FOUND The PCD service could not find the requested token number. **/ EFI_STATUS EFIAPI DxePcdSetPtrEx ( IN CONST EFI_GUID *Guid, IN UINTN ExTokenNumber, IN OUT UINTN *SizeOfBuffer, IN VOID *Buffer ) { return ExSetWorker(ExTokenNumber, Guid, Buffer, SizeOfBuffer, TRUE); }