TianoCore EDK2 master
Loading...
Searching...
No Matches
ZeroMemWrapper.c
Go to the documentation of this file.
1
20#include "MemLibInternals.h"
21
36VOID *
37EFIAPI
39 OUT VOID *Buffer,
40 IN UINTN Length
41 )
42{
43 if (Length == 0) {
44 return Buffer;
45 }
46
47 ASSERT (Buffer != NULL);
48 ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));
49 return InternalMemZeroMem (Buffer, Length);
50}
UINT64 UINTN
#define MAX_ADDRESS
VOID *EFIAPI InternalMemZeroMem(OUT VOID *Buffer, IN UINTN Length)
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284