]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/DxeMemoryLib/MemLib.c
Code Scrub for MdePkg.
[mirror_edk2.git] / MdePkg / Library / DxeMemoryLib / MemLib.c
index 37182db2b524cad07d06d85aa731de0778ae0af0..faa32f539072edea15a30dda7c1296103406d19b 100644 (file)
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  Module Name:  MemLib.c\r
-\r
 **/\r
 \r
 #include "MemLibInternals.h"\r
 \r
+/**\r
+  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
+\r
+  This function wraps the gBS->CopyMem().\r
+\r
+  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
+  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
+  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
+\r
+  @return DestinationBuffer.\r
+\r
+**/\r
 VOID *\r
 EFIAPI\r
 InternalMemCopyMem (\r
@@ -28,6 +38,18 @@ InternalMemCopyMem (
   return Destination;\r
 }\r
 \r
+/**\r
+  Fills a target buffer with a byte value, and returns the target buffer.\r
+\r
+  This function wraps the gBS->SetMem().\r
+\r
+  @param  Buffer    Memory to set.\r
+  @param  Size      Number of bytes to set.\r
+  @param  Value     Value of the set operation.\r
+\r
+  @return Buffer.\r
+\r
+**/\r
 VOID *\r
 EFIAPI\r
 InternalMemSetMem (\r