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

Function StrSize

MdePkg/Library/BaseLib/String.c:220–230  ·  view source on GitHub ↗

Returns the size of a Null-terminated Unicode string in bytes, including the Null terminator. This function returns the size, in bytes, of the Null-terminated Unicode string specified by String. If String is NULL, then ASSERT(). If String is not aligned on a 16-bit boundary, then ASSERT(). If PcdMaximumUnicodeStringLength is not zero, and String contains more than PcdMaxim

Source from the content-addressed store, hash-verified

218
219**/
220UINTN
221EFIAPI
222StrSize (
223 IN CONST CHAR16 *String
224 )
225{
226 if (!String) {
227 return 0;
228 }
229 return (StrLen (String) + 1) * sizeof (*String);
230}
231
232/**
233 Compares two Null-terminated Unicode strings, and returns the difference

Callers 15

StrCmpFunction · 0.70
StrnCmpFunction · 0.70
String.cFile · 0.70
FilePaths.cFile · 0.70
FSInject.cFile · 0.50
FSI_SFS_OpenVolumeFunction · 0.50
FSInjectionInstallFunction · 0.50
AddUnicodeString2Function · 0.50
UefiLibPrint.cFile · 0.50
FileHandleWriteLineFunction · 0.50

Calls 1

StrLenFunction · 0.70

Tested by

no test coverage detected