TianoCore EDK2 master
Loading...
Searching...
No Matches
ScanMem64Wrapper.c
Go to the documentation of this file.
1
20#include "MemLibInternals.h"
21
43VOID *
44EFIAPI
46 IN CONST VOID *Buffer,
47 IN UINTN Length,
48 IN UINT64 Value
49 )
50{
51 if (Length == 0) {
52 return NULL;
53 }
54
55 ASSERT (Buffer != NULL);
56 ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
57 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
58 ASSERT ((Length & (sizeof (Value) - 1)) == 0);
59
60 return (VOID *)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);
61}
UINT64 UINTN
#define MAX_ADDRESS
CONST VOID *EFIAPI InternalMemScanMem64(IN CONST VOID *Buffer, IN UINTN Length, IN UINT64 Value)
VOID *EFIAPI ScanMem64(IN CONST VOID *Buffer, IN UINTN Length, IN UINT64 Value)
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279