https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PrintLib.h
// MdePkg\Include\Library\PrintLib.h
// -- 2024-11-16
//
// This function is similar as snprintf_s defined in C11.
UnicodeSPrint(OUT CHAR16 *, IN UINTN, IN const CHAR16 *, ...);
UnicodeSPrintAsciiFormat(OUT CHAR16 *, IN UINTN, IN const CHAR8 *, ...);
AsciiSPrint(OUT CHAR8 *, IN UINTN, IN const CHAR8 *, ...);
AsciiSPrintUnicodeFormat(OUT CHAR8 *, IN UINTN, IN const CHAR16 *, ...);
// Supporting variants
UnicodeVSPrint(OUT CHAR16 *, IN UINTN, IN const CHAR16 *, IN VA_LIST);
UnicodeBSPrint(OUT CHAR16 *, IN UINTN, IN const CHAR16 *, IN BASE_LIST);
UnicodeVSPrintAsciiFormat(OUT CHAR16 *, IN UINTN, IN const CHAR8 *, IN VA_LIST);
UnicodeBSPrintAsciiFormat(OUT CHAR16 *, IN UINTN, IN const CHAR8 *, IN BASE_LIST);
AsciiVSPrint(OUT CHAR8 *, IN UINTN, IN const CHAR8 *, IN VA_LIST);
AsciiBSPrint(OUT CHAR8 *, IN UINTN, IN const CHAR8 *, IN BASE_LIST);
AsciiVSPrintUnicodeFormat(OUT CHAR8 *, IN UINTN, IN const CHAR16 *, IN VA_LIST);
AsciiBSPrintUnicodeFormat(OUT CHAR8 *, IN UINTN, IN const CHAR16 *, IN BASE_LIST);
// Converts a decimal value to a Null-terminated Unicode string.
UnicodeValueToStringS(IN OUT CHAR16 *, IN UINTN, IN UINTN, IN INT64, IN UINTN);
AsciiValueToStringS(IN OUT CHAR8 *, IN UINTN, IN UINTN, IN INT64, IN UINTN);
// Returns the number of characters that would be produced, not including the Null-terminator.
SPrintLength(IN const CHAR16 *, IN VA_LIST);
SPrintLengthAsciiFormat(IN const CHAR8 *, IN VA_LIST);
标签:CHAR8,PrintLib,const,LIST,002,UEFI,CHAR16,UINTN,OUT
From: https://www.cnblogs.com/you-yangyang/p/18549708