(Size), \\r
(Buffer) \\r
)\r
-\r
/**\r
Retrieves an 8-bit PCD token value based on a token name.\r
\r
#define PcdGetBool(TokenName) _PCD_GET_MODE_BOOL_##TokenName\r
\r
\r
+/**\r
+ Retrieves the size of a fixed PCD token based on a token name.\r
+\r
+ Returns the size of the token specified by TokenName.\r
+ If TokenName is not a valid token in the token space, then the module will not build.\r
+\r
+ @param[in] TokenName The name of the PCD token to retrieve a current value size for.\r
+\r
+ @return Return the size\r
+\r
+**/\r
+#define FixedPcdGetSize(TokenName) _PCD_SIZE_##TokenName\r
+\r
+\r
+/**\r
+ Retrieves the size of a binary patchable PCD token based on a token name.\r
+\r
+ Returns the size of the token specified by TokenName.\r
+ If TokenName is not a valid token in the token space, then the module will not build.\r
+\r
+ @param[in] TokenName The name of the PCD token to retrieve a current value size for.\r
+\r
+ @return Return the size\r
+\r
+**/\r
+#define PatchPcdGetSize(TokenName) _gPcd_BinaryPatch_Size_##TokenName\r
+\r
+\r
+/**\r
+ Retrieves the size of the PCD token based on a token name.\r
+ \r
+ Returns the size of the token specified by TokenName.\r
+ If TokenName is not a valid token in the token space, then the module will not build.\r
+ \r
+ @param[in] TokenName The name of the PCD token to retrieve a current value size for.\r
+\r
+ @return Return the size\r
+\r
+**/\r
+#define PcdGetSize(TokenName) _PCD_GET_MODE_SIZE_##TokenName\r
+\r
+\r
+/**\r
+ Retrieve the size of a given PCD token.\r
+ \r
+ Returns the size of the token specified by TokenNumber and Guid. \r
+ If Guid is NULL, then ASSERT(). \r
+\r
+ @param[in] Guid Pointer to a 128-bit unique value that designates \r
+ which namespace to retrieve a value from.\r
+ @param[in] TokenNumber The PCD token number to retrieve a current value size for.\r
+\r
+ @return Return the size.\r
+\r
+**/\r
+#define PcdGetExSize(Guid, TokenName) LibPcdGetExSize ((Guid), PcdTokenEx(Guid,TokenName))\r
+\r
#ifndef DISABLE_NEW_DEPRECATED_INTERFACES\r
/**\r
Sets an 8-bit PCD token value based on a token name.\r