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

Function UnicodeVSPrint

MdePkg/Library/BasePrintLib/PrintLib.c:62–74  ·  view source on GitHub ↗

Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated Unicode format string and a VA_LIST argument list. This function is similar as vsnprintf_s defined in C11. Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer and BufferSize. The Unicode string is produced by parsing the format string specified by Format

Source from the content-addressed store, hash-verified

60
61**/
62UINTN
63EFIAPI
64UnicodeVSPrint (
65 OUT CHAR16 *StartOfBuffer,
66 IN UINTN BufferSize,
67 IN CONST CHAR16 *FormatString,
68 IN VA_LIST Marker
69 )
70{
71 ASSERT_UNICODE_BUFFER (StartOfBuffer);
72 ASSERT_UNICODE_BUFFER (FormatString);
73 return BasePrintLibSPrintMarker ((CHAR8 *)StartOfBuffer, BufferSize >> 1, FORMAT_UNICODE | OUTPUT_UNICODE, (CHAR8 *)FormatString, Marker, NULL);
74}
75
76/**
77 Produces a Null-terminated Unicode string in an output buffer based on

Callers 11

UnicodeSPrintFunction · 0.70
InternalPrintFunction · 0.50
UefiLibPrint.cFile · 0.50
FileHandlePrintLineFunction · 0.50
DevicePathToText.cFile · 0.50
testWPrintfFunction · 0.50
CatPrintFunction · 0.50
InternalShellPrintWorkerFunction · 0.50
OcPrintScreenFunction · 0.50
OcUnicodeSafeSPrintFunction · 0.50
DevicePath.cFile · 0.50

Calls 1

BasePrintLibSPrintMarkerFunction · 0.85

Tested by 1

testWPrintfFunction · 0.40