]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/UefiMemoryLib/MemLib.c
DebugLib:
[mirror_edk2.git] / MdePkg / Library / UefiMemoryLib / 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 VOID *
18 EFIAPI
19 InternalMemCopyMem (
20 OUT VOID *Destination,
21 IN CONST VOID *Source,
22 IN UINTN Length
23 )
24 {
25 gBS->CopyMem (Destination, (VOID*)Source, Length);
26 return Destination;
27 }
28
29 VOID *
30 EFIAPI
31 InternalMemSetMem (
32 OUT VOID *Buffer,
33 IN UINTN Size,
34 IN UINT8 Value
35 )
36 {
37 gBS->SetMem (Buffer, Size, Value);
38 return Buffer;
39 }