MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / DxePcdGetBool

Function DxePcdGetBool

MdeModulePkg/Universal/PCD/Dxe/Pcd.c:443–450  ·  view source on GitHub ↗

Retrieves a Boolean value for a given PCD token. Retrieves the current boolean value for a PCD token number. Do not make any assumptions about the alignment of the pointer that is returned by this function call. If the TokenNumber is invalid, the results are unpredictable. @param[in] TokenNumber The PCD token number. @return The Boolean value. **/

Source from the content-addressed store, hash-verified

441
442**/
443BOOLEAN
444EFIAPI
445DxePcdGetBool (
446 IN UINTN TokenNumber
447 )
448{
449 return *((BOOLEAN *) GetWorker (TokenNumber, sizeof (BOOLEAN)));
450}
451
452/**
453 Retrieves the size of the value for a given PCD token.

Callers

nothing calls this directly

Calls 1

GetWorkerFunction · 0.70

Tested by

no test coverage detected