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

Function UnicodeSPrint

MdePkg/Library/BasePrintLib/PrintLib.c:168–184  ·  view source on GitHub ↗

Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated Unicode format string and variable argument list. This function is similar as snprintf_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 FormatSt

Source from the content-addressed store, hash-verified

166
167**/
168UINTN
169EFIAPI
170UnicodeSPrint (
171 OUT CHAR16 *StartOfBuffer,
172 IN UINTN BufferSize,
173 IN CONST CHAR16 *FormatString,
174 ...
175 )
176{
177 VA_LIST Marker;
178 UINTN NumberOfPrinted;
179
180 VA_START (Marker, FormatString);
181 NumberOfPrinted = UnicodeVSPrint (StartOfBuffer, BufferSize, FormatString, Marker);
182 VA_END (Marker);
183 return NumberOfPrinted;
184}
185
186/**
187 Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated

Callers 15

FSInject.cFile · 0.50
DevPathToTextAcpiExFunction · 0.50
BdsBootDeviceSelectFunction · 0.50
IsKeyOptionValidFunction · 0.50
RegisterHotkeyFunction · 0.50
UnregisterHotkeyFunction · 0.50
HotkeyCallbackFunction · 0.50
InitializeHotkeyServiceFunction · 0.50
BootMaintExtractConfigFunction · 0.50
BOpt_FindFileSystemFunction · 0.50
BOpt_FindFilesFunction · 0.50
BOpt_GetBootOptionsFunction · 0.50

Calls 1

UnicodeVSPrintFunction · 0.70

Tested by

no test coverage detected