]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/DxeMemoryLib/MemLib.c
4 Copyright (c) 2006, Intel Corporation<BR>
5 All rights reserved. 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 gBS->CopyMem().
22 @param DestinationBuffer Pointer to the destination buffer of the memory copy.
23 @param SourceBuffer Pointer to the source buffer of the memory copy.
24 @param Length Number of bytes to copy from SourceBuffer to DestinationBuffer.
26 @return DestinationBuffer.
32 OUT VOID
*Destination
,
33 IN CONST VOID
*Source
,
37 gBS
->CopyMem (Destination
, (VOID
*)Source
, Length
);
42 Fills a target buffer with a byte value, and returns the target buffer.
44 This function wraps the gBS->SetMem().
46 @param Buffer Memory to set.
47 @param Length Number of bytes to set.
48 @param Value Value of the set operation.
61 gBS
->SetMem (Buffer
, Size
, Value
);