From f80b0830db453419ac5ad2b3f12a8b7c2bbdc29a Mon Sep 17 00:00:00 2001 From: yshang1 Date: Mon, 14 Jul 2008 09:01:34 +0000 Subject: Code scrub: MdePkg/Library/BaseCacheMaintenanceLib MdePkg/Library/BaseDebugLibNull MdePkg/Library/BaseIoLibIntrinsic MdePkg/Library/BaseLib MdePkg/Library/BasePeCoffLib MdePkg/Library/CpuLib MdePkg/Library/DxeMemoryLib MdePkg/Library/DxePiLib MdePkg/Library/PeiIoLib MdePkg/Library/PeiMemoryLib MdePkg/Library/UefiBootServicesTableLib MdePkg/Library/UefiLib MdePkg/Library/UefiRuntimeLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5464 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/PeiMemoryLib/MemLib.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'MdePkg/Library/PeiMemoryLib') diff --git a/MdePkg/Library/PeiMemoryLib/MemLib.c b/MdePkg/Library/PeiMemoryLib/MemLib.c index ddb8b445bc..207f580d45 100644 --- a/MdePkg/Library/PeiMemoryLib/MemLib.c +++ b/MdePkg/Library/PeiMemoryLib/MemLib.c @@ -14,6 +14,18 @@ #include "MemLibInternals.h" +/** + Copies a source buffer to a destination buffer, and returns the destination buffer. + + This function wraps the gPS->CopyMem (). + + @param DestinationBuffer Pointer to the destination buffer of the memory copy. + @param SourceBuffer Pointer to the source buffer of the memory copy. + @param Length Number of bytes to copy from SourceBuffer to DestinationBuffer. + + @return DestinationBuffer. + +**/ VOID * EFIAPI InternalMemCopyMem ( @@ -30,6 +42,18 @@ InternalMemCopyMem ( return Destination; } +/** + Fills a target buffer with a byte value, and returns the target buffer. + + This function wraps the gPS->SetMem (). + + @param Buffer Memory to set. + @param Length Number of bytes to set. + @param Value Value of the set operation. + + @return Buffer. + +**/ VOID * EFIAPI InternalMemSetMem ( -- cgit v1.2.3