return Status;\r
}\r
\r
-/**\r
- Convert a single character to number.\r
- It assumes the input Char is in the scope of L'0' ~ L'9' and L'A' ~ L'F'\r
-\r
- @param Char The input char which need to convert to int.\r
-**/\r
-UINTN\r
-BmCharToUint (\r
- IN CHAR16 Char\r
- )\r
-{\r
- if ((Char >= L'0') && (Char <= L'9')) {\r
- return (UINTN) (Char - L'0');\r
- }\r
-\r
- if ((Char >= L'A') && (Char <= L'F')) {\r
- return (UINTN) (Char - L'A' + 0xA);\r
- }\r
-\r
- ASSERT (FALSE);\r
- return (UINTN) -1;\r
-}\r
-\r
/**\r
Returns the size of a device path in bytes.\r
\r