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