]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiMemoryLib/MemLibInternals.h
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / PeiMemoryLib / MemLibInternals.h
index 8a1e1dff904b6e1efb7b16cea73fd2c0153b8fe2..cf9b87387d03b058a22580b9d3883771efc74f23 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Declaration of internal functions for Base Memory Library.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -26,7 +26,7 @@
   Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
   This function wraps the (*PeiServices)->CopyMem ().\r
-  \r
+\r
   @param  DestinationBuffer   The pointer to the destination buffer of the memory copy.\r
   @param  SourceBuffer        The pointer to the source buffer of the memory copy.\r
   @param  Length              The number of bytes to copy from SourceBuffer to DestinationBuffer.\r
@@ -46,7 +46,7 @@ InternalMemCopyMem (
   Fills a target buffer with a byte value, and returns the target buffer.\r
 \r
   This function wraps the (*PeiServices)->SetMem ().\r
-  \r
+\r
   @param  Buffer    The memory to set.\r
   @param  Size      The number of bytes to set.\r
   @param  Value     Value of the set operation.\r
@@ -229,4 +229,21 @@ InternalMemScanMem64 (
   IN      UINT64                    Value\r
   );\r
 \r
+/**\r
+  Checks whether the contents of a buffer are all zeros.\r
+\r
+  @param  Buffer  The pointer to the buffer to be checked.\r
+  @param  Length  The size of the buffer (in bytes) to be checked.\r
+\r
+  @retval TRUE    Contents of the buffer are all zeros.\r
+  @retval FALSE   Contents of the buffer are not all zeros.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+InternalMemIsZeroBuffer (\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length\r
+  );\r
+\r
 #endif\r