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

Function SPrintLength

MdePkg/Library/BasePrintLib/PrintLib.c:921–930  ·  view source on GitHub ↗

Returns the number of characters that would be produced by if the formatted output were produced not including the Null-terminator. If FormatString is not aligned on a 16-bit boundary, then ASSERT(). If FormatString is NULL, then ASSERT() and 0 is returned. If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than PcdMaximumUnicodeStringLength Unicode cha

Source from the content-addressed store, hash-verified

919 Null-terminator.
920**/
921UINTN
922EFIAPI
923SPrintLength (
924 IN CONST CHAR16 *FormatString,
925 IN VA_LIST Marker
926 )
927{
928 ASSERT_UNICODE_BUFFER (FormatString);
929 return BasePrintLibSPrintMarker (NULL, 0, FORMAT_UNICODE | OUTPUT_UNICODE | COUNT_ONLY_NO_PRINT, (CHAR8 *)FormatString, Marker, NULL);
930}
931
932/**
933 Returns the number of characters that would be produced by if the formatted

Callers 3

UefiLibPrint.cFile · 0.50
DevicePathToText.cFile · 0.50
OcUnicodeSafeSPrintFunction · 0.50

Calls 1

BasePrintLibSPrintMarkerFunction · 0.85

Tested by

no test coverage detected