]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/DxeMemoryLib/MemLib.c
37182db2b524cad07d06d85aa731de0778ae0af0
[mirror_edk2.git] / MdePkg / Library / DxeMemoryLib / MemLib.c
1 /** @file
2 Base Memory Library.
3
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
9
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.
12
13 Module Name: MemLib.c
14
15 **/
16
17 #include "MemLibInternals.h"
18
19 VOID *
20 EFIAPI
21 InternalMemCopyMem (
22 OUT VOID *Destination,
23 IN CONST VOID *Source,
24 IN UINTN Length
25 )
26 {
27 gBS->CopyMem (Destination, (VOID*)Source, Length);
28 return Destination;
29 }
30
31 VOID *
32 EFIAPI
33 InternalMemSetMem (
34 OUT VOID *Buffer,
35 IN UINTN Size,
36 IN UINT8 Value
37 )
38 {
39 gBS->SetMem (Buffer, Size, Value);
40 return Buffer;
41 }