audk/MdePkg/Include/Library
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
..
BaseLib.h MdePkg/BaseLib: Add safe string functions [U|A]StrnTo[A|U]StrS 2017-01-09 13:59:34 +08:00
BaseMemoryLib.h MdePkg BaseMemoryLib: Add C implementation of API IsZeroBuffer() 2016-08-22 18:54:30 +08:00
CacheMaintenanceLib.h
CpuLib.h
DebugLib.h MdePkg/DebugLib.h: add ASSERT_RETURN_ERROR() 2016-10-25 10:46:07 +02:00
DebugPrintErrorLevelLib.h MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
DevicePathLib.h
DxeCoreEntryPoint.h
DxeServicesLib.h
DxeServicesTableLib.h
ExtendedSalLib.h
ExtractGuidedSectionLib.h
FileHandleLib.h MdePkg/Include: Add include file to FileHandleLib.h 2017-01-10 12:31:28 -08:00
HobLib.h MdePkg HobLib: Check FV alignment when building FV HOB 2016-11-17 09:27:12 +08:00
HstiLib.h
IoLib.h MdePkg: Expand BaseIoLibIntrinsic (IoLib class) library 2017-01-17 10:09:50 +08:00
MemoryAllocationLib.h
OrderedCollectionLib.h
PalLib.h
PcdLib.h MdePkg: Correct comments of macros FixedPcdGetX/PatchPcdXXX in PcdLib.h 2017-01-18 15:23:08 +08:00
PciCf8Lib.h
PciExpressLib.h
PciLib.h
PciSegmentLib.h MdePkg/PciSegmentLib: Optimize PCI_SEGMENT_LIB_ADDRESS() 2016-10-27 21:57:52 -07:00
PeCoffExtraActionLib.h
PeCoffGetEntryPointLib.h
PeCoffLib.h MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
PeiCoreEntryPoint.h
PeiServicesLib.h
PeiServicesTablePointerLib.h
PeimEntryPoint.h
PerformanceLib.h MdePkg: Update PerformanceLib comments not to check Identifier. 2016-04-11 16:20:28 +08:00
PostCodeLib.h
PrintLib.h MdePkg/BasePrintLib: Add safe print functions [A|U]ValueToStringS 2017-02-21 13:56:14 +08:00
ReportStatusCodeLib.h
ResourcePublicationLib.h
RngLib.h
S3BootScriptLib.h MdePkg, MdeModulePkg: S3BootScriptSaveMemPoll(): accept 64-bit LoopTimes 2017-01-03 12:22:47 +01:00
S3IoLib.h
S3PciLib.h
S3SmbusLib.h
S3StallLib.h
SalLib.h
SerialPortLib.h
SmbusLib.h
SmmLib.h
SmmMemLib.h
SmmPeriodicSmiLib.h MdePkg: Fix typos in comments 2016-10-21 16:40:51 +08:00
SmmServicesTableLib.h
SynchronizationLib.h MdePkg/Include: Add volatile to SynchronizationLib parameters 2016-11-17 17:08:11 -08:00
TimerLib.h
UefiApplicationEntryPoint.h
UefiBootServicesTableLib.h
UefiDecompressLib.h
UefiDriverEntryPoint.h
UefiLib.h MdePkg UefiLib: Make the event empty function public 2017-01-20 15:51:16 +08:00
UefiRuntimeLib.h
UefiRuntimeServicesTableLib.h
UefiScsiLib.h
UefiUsbLib.h