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

Function AsciiStrSize

MdePkg/Library/BaseLib/String.c:1242–1253  ·  view source on GitHub ↗

Returns the size of a Null-terminated ASCII string in bytes, including the Null terminator. This function returns the size, in bytes, of the Null-terminated ASCII string specified by String. If String is NULL, then ASSERT(). If PcdMaximumAsciiStringLength is not zero and String contains more than PcdMaximumAsciiStringLength ASCII characters, not including the Null-terminator,

Source from the content-addressed store, hash-verified

1240
1241**/
1242UINTN
1243EFIAPI
1244AsciiStrSize (
1245 IN CONST CHAR8 *String
1246 )
1247{
1248 if (!String) {
1249 return 0;
1250 }
1251
1252 return (AsciiStrLen(String) + 1) * sizeof (*String);
1253}
1254
1255/**
1256 Compares two Null-terminated ASCII strings, and returns the difference

Callers 15

String.cFile · 0.85
AsciiStrCmpFunction · 0.85
AsciiStriCmpFunction · 0.85
AsciiStrnCmpFunction · 0.85
AddUnicodeString2Function · 0.85
PostCodeWithDescriptionFunction · 0.85
FileHandleWriteLineFunction · 0.85
AmlParseOptionTermFunction · 0.85
InitializeLangVariableFunction · 0.85
InitializeLanguageFunction · 0.85
FrontPageCallbackFunction · 0.85
InitializeFrontPageFunction · 0.85

Calls 1

AsciiStrLenFunction · 0.85

Tested by

no test coverage detected