]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiMemoryLib/MemLib.c
Remove incorrect assertion. According to spec, it should not assert and should return 0.
[mirror_edk2.git] / MdePkg / Library / UefiMemoryLib / MemLib.c
index f8f8e30d0a6520d4ecd0a21b7223e31b5836120c..5489fd0f0890d2005ab0ac51467dfc9d8a9bfe95 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  Base Memory Library.\r
+  Base Memory Library functions implementation bases on Uefi Boot Service.\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   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
@@ -26,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