audk/MdePkg/Include
Hao Wu 51f0ceb4eb MdePkg/BasePrintLib: Add safe print functions [A|U]ValueToStringS
Add the following 2 APIs:
UnicodeValueToStringS
AsciiValueToStringS

These safe version APIs are used to enhance their counterpart (APIs
without trailing 'S' in function names).

They perform checks to the input parameters and will return relative
status to reflect the check result.

Return RETURN_INVALID_PARAMETER when:
1). The input Buffer is NULL.
2). The input BufferSize is greater than (PcdMaximumUnicodeStringLength *
sizeof (CHAR16) + 1) for UnicodeValueToStringS or greater than
PcdMaximumAsciiStringLength for AsciiValueToStringS.
3). The input Flags is not set properly.
4). The input Width is not smaller than MAXIMUM_VALUE_CHARACTERS.

Return RETURN_BUFFER_TOO_SMALL when:
1). The input BufferSize cannot hold the converted value.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2017-02-21 13:56:14 +08:00
..
AArch64 MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Arm MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Ebc
Guid MdePkg/GraphicsInfoHob: Add GraphicsDeviceInfo HOB GUID and structure 2016-10-12 10:42:15 +08:00
Ia32 MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
IndustryStandard MdePkg ACPI: Incorrect definition name for ACPI IORT Table signature 2017-02-14 08:43:33 +08:00
Ipf MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Library MdePkg/BasePrintLib: Add safe print functions [A|U]ValueToStringS 2017-02-21 13:56:14 +08:00
Pi MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Ppi MdePkg: Follow PI1.4a update EFI_SEC_PLATFORM_INFORMATION2 description 2016-06-02 16:34:53 +08:00
Protocol MdePkg: Add TLS related protocol definition 2016-12-22 20:33:05 +08:00
Uefi MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
X64 MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Base.h MdePkg Base.h: Add add comments on __ prefix in enum VERIFY_UINTXX_ENUM_SIZE 2016-11-18 11:10:05 +08:00
PiDxe.h
PiPei.h
PiSmm.h
Uefi.h