]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/UefiMemoryLib/MemLib.c
2 Base Memory Library functions implementation bases on Uefi Boot Service.
4 Copyright (c) 2006 - 2008, 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 gBS->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 gBS
->CopyMem (Destination
, (VOID
*)Source
, Length
);
36 Fills a target buffer with a byte value, and returns the target buffer.
38 This function wraps the gBS->SetMem().
40 @param Buffer Memory to set.
41 @param Size The number of bytes to set.
42 @param Value Value of the set operation.
55 gBS
->SetMem (Buffer
, Size
, Value
);