]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeiMemoryLib/MemLib.c
2da7f1596a4eb817dc989e6b38ddc7b9db7f61d5
2 Base Memory Library functions implementation bases on PeiServcie.
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "MemLibInternals.h"
12 Copies a source buffer to a destination buffer, and returns the destination buffer.
14 This function wraps the gPS->CopyMem ().
16 @param DestinationBuffer The pointer to the destination buffer of the memory copy.
17 @param SourceBuffer The pointer to the source buffer of the memory copy.
18 @param Length The number of bytes to copy from SourceBuffer to DestinationBuffer.
20 @return DestinationBuffer.
26 OUT VOID
*Destination
,
27 IN CONST VOID
*Source
,
31 (*GetPeiServicesTablePointer ())->CopyMem (
40 Fills a target buffer with a byte value, and returns the target buffer.
42 This function wraps the gPS->SetMem ().
44 @param Buffer Memory to set.
45 @param Size The number of bytes to set.
46 @param Value Value of the set operation.
59 (*GetPeiServicesTablePointer ())->SetMem (