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

Function PeiPcdGetBool

MdeModulePkg/Universal/PCD/Pei/Pcd.c:691–698  ·  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

689
690**/
691BOOLEAN
692EFIAPI
693PeiPcdGetBool (
694 IN UINTN TokenNumber
695 )
696{
697 return *((BOOLEAN *) GetWorker (TokenNumber, sizeof (BOOLEAN)));
698}
699
700/**
701 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