summaryrefslogtreecommitdiff
path: root/MdePkg/Library/PeiMemoryLib/MemLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/PeiMemoryLib/MemLib.c')
-rw-r--r--MdePkg/Library/PeiMemoryLib/MemLib.c24
1 files changed, 24 insertions, 0 deletions
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 (