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

Function StrHexToUintn

MdePkg/Library/BaseLib/String.c:788–802  ·  view source on GitHub ↗

Convert a Null-terminated Unicode hexadecimal string to a value of type UINTN. This function returns a value of type UINTN by interpreting the contents of the Unicode string specified by String as a hexadecimal number. The format of the input Unicode string String is: [spaces][zeros][x][hexadecimal digits]. The valid hexadecimal digit character is in the range

Source from the content-addressed store, hash-verified

786
787**/
788UINTN
789EFIAPI
790StrHexToUintn (
791 IN CONST CHAR16 *String
792 )
793{
794 UINTN Result = 0;
795 RETURN_STATUS Status;
796
797 Status = StrHexToUintnS (String, (CHAR16 **) NULL, &Result);
798 if (Status != RETURN_SUCCESS) {
799 return 0;
800 }
801 return Result;
802}
803
804
805/**

Callers 6

StrtoiFunction · 0.85
EisaIdFromTextFunction · 0.85
DevPathFromTextNVMeFunction · 0.85
IScsiParseIsIdFromStringFunction · 0.85

Calls 1

StrHexToUintnSFunction · 0.85

Tested by

no test coverage detected