]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeiMemoryLib/MemLib.c
2 Base Memory Library functions implementation bases on PeiServcie.
4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #include "MemLibInternals.h"
18 Copies a source buffer to a destination buffer, and returns the destination buffer.
20 This function wraps the gPS->CopyMem ().
22 @param DestinationBuffer The pointer to the destination buffer of the memory copy.
23 @param SourceBuffer The pointer to the source buffer of the memory copy.
24 @param Length The number of bytes to copy from SourceBuffer to DestinationBuffer.
26 @return DestinationBuffer.
32 OUT VOID
*Destination
,
33 IN CONST VOID
*Source
,
37 (*GetPeiServicesTablePointer ())->CopyMem (
46 Fills a target buffer with a byte value, and returns the target buffer.
48 This function wraps the gPS->SetMem ().
50 @param Buffer Memory to set.
51 @param Size The number of bytes to set.
52 @param Value Value of the set operation.
65 (*GetPeiServicesTablePointer ())->SetMem (