]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Common/BinderFuncs.c
2 Binder function implementations for ANSI C libraries.
4 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>
5 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 "BinderFuncs.h"
16 #include "CommonLib.h"
21 // Binder Function Implementations
25 CommonLibBinderAllocate (
29 return (VOID
*) malloc (Size
);
41 CommonLibBinderCopyMem (
47 memmove (Destination
, Source
, Length
);
51 CommonLibBinderSetMem (
57 memset (Destination
, Value
, Length
);
61 CommonLibBinderCompareMem (
67 return memcmp (MemOne
, MemTwo
, Length
);
71 CommonLibBinderCompareGuid (
76 return CompareGuid (Guid1
, Guid2
) ? FALSE
: TRUE
;