]>
Commit | Line | Data |
---|---|---|
add13dc2 | 1 | /** @file\r |
2 | Base Memory Library.\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation<BR>\r | |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | Module Name: MemLib.c\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
58251024 | 17 | #include "MemLibInternals.h"\r |
18 | \r | |
add13dc2 | 19 | VOID *\r |
20 | EFIAPI\r | |
21 | InternalMemCopyMem (\r | |
22 | OUT VOID *Destination,\r | |
23 | IN CONST VOID *Source,\r | |
24 | IN UINTN Length\r | |
25 | )\r | |
26 | {\r | |
27 | gBS->CopyMem (Destination, (VOID*)Source, Length);\r | |
28 | return Destination;\r | |
29 | }\r | |
30 | \r | |
31 | VOID *\r | |
32 | EFIAPI\r | |
33 | InternalMemSetMem (\r | |
34 | OUT VOID *Buffer,\r | |
35 | IN UINTN Size,\r | |
36 | IN UINT8 Value\r | |
37 | )\r | |
38 | {\r | |
39 | gBS->SetMem (Buffer, Size, Value);\r | |
40 | return Buffer;\r | |
41 | }\r |