summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiMemoryLib/MemLibInternals.h
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-08-17 14:24:04 +0800
committerHao Wu <hao.a.wu@intel.com>2016-08-22 18:54:30 +0800
commit1944b02b03e14d023e8f2cd3d614df6eca9dc8f0 (patch)
tree9e2a414e4971aa0b627f27833d40fdb1772f81a8 /MdePkg/Library/UefiMemoryLib/MemLibInternals.h
parentbce0133b7f0d5583c53fae0e80597568a3c8c411 (diff)
downloadedk2-1944b02b03e14d023e8f2cd3d614df6eca9dc8f0.tar.gz
MdePkg BaseMemoryLib: Add C implementation of API IsZeroBuffer()
Add the implementation of API IsZeroBuffer() via C language for the following library instances: BaseMemoryLib PeiMemoryLib UefiMemoryLib Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> 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>
Diffstat (limited to 'MdePkg/Library/UefiMemoryLib/MemLibInternals.h')
-rw-r--r--MdePkg/Library/UefiMemoryLib/MemLibInternals.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiMemoryLib/MemLibInternals.h b/MdePkg/Library/UefiMemoryLib/MemLibInternals.h
index 0443b508bb..cafbb4dd30 100644
--- a/MdePkg/Library/UefiMemoryLib/MemLibInternals.h
+++ b/MdePkg/Library/UefiMemoryLib/MemLibInternals.h
@@ -1,7 +1,7 @@
/** @file
Declaration of internal functions for Base Memory Library.
- Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -229,4 +229,21 @@ InternalMemScanMem64 (
IN UINT64 Value
);
+/**
+ Checks whether the contents of a buffer are all zeros.
+
+ @param Buffer The pointer to the buffer to be checked.
+ @param Length The size of the buffer (in bytes) to be checked.
+
+ @retval TRUE Contents of the buffer are all zeros.
+ @retval FALSE Contents of the buffer are not all zeros.
+
+**/
+BOOLEAN
+EFIAPI
+InternalMemIsZeroBuffer (
+ IN CONST VOID *Buffer,
+ IN UINTN Length
+ );
+
#endif